Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateFunction ¶
func NewDistribution ¶
func NewDistribution(distributionTypeArg string, iterationDuration time.Duration, rateFn RateFunction) (time.Duration, RateFunction, error)
func WithJitter ¶
func WithJitter(rate RateFunction, multiple float64) RateFunction
type Rates ¶
type Rates struct { IterationDuration time.Duration Rate RateFunction Duration time.Duration }
type Trigger ¶
type Trigger struct { Trigger WorkTriggerer DryRun RateFunction Description string Duration time.Duration Options Options }
type WorkTriggerer ¶
type WorkTriggerer func(doWork chan<- bool, stop <-chan bool, workDone <-chan bool, options options.RunOptions)
func NewIterationWorker ¶
func NewIterationWorker(iterationDuration time.Duration, rate RateFunction) WorkTriggerer
NewIterationWorker produces a WorkTriggerer which triggers work at fixed intervals.
Click to show internal directories.
Click to hide internal directories.