Documentation ¶
Index ¶
- func AddStressFlags(set *flag.FlagSet) *flag.FlagSet
- func DownloadWorker(urls chan string, results chan []byte, wg *sync.WaitGroup)
- func FrameStress(opts StressOptions) error
- func RandomWalk(opts StressOptions, baseurl string) error
- func RandomWalkQuery(urls chan string, out chan string, baseurl string)
- func RepeatedDownload(settings *StressOptions, producer UrlProducer) error
- type StressOptions
- type StressSettings
- type UrlProducer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadWorker ¶
func FrameStress ¶
func FrameStress(opts StressOptions) error
func RandomWalk ¶
func RandomWalk(opts StressOptions, baseurl string) error
func RandomWalkQuery ¶
func RepeatedDownload ¶
func RepeatedDownload(settings *StressOptions, producer UrlProducer) error
Types ¶
type StressOptions ¶
type StressOptions struct {
// contains filtered or unexported fields
}
func NewSettings ¶
func NewSettings() *StressOptions
func (*StressOptions) ApplyFlags ¶
func (opt *StressOptions) ApplyFlags(set *flag.FlagSet)
func (StressOptions) Count ¶
func (opt StressOptions) Count() int
func (StressOptions) Parallelism ¶
func (opt StressOptions) Parallelism() int
func (*StressOptions) SetCount ¶
func (opt *StressOptions) SetCount(i int)
func (*StressOptions) SetParallelism ¶
func (opt *StressOptions) SetParallelism(i int)
type StressSettings ¶
type UrlProducer ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.