Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pacer ¶
type Pacer interface { // Pace returns the duration an Runner should wait until // hitting the next Target, given an already elapsed duration and // completed hits. Pace(elapsed time.Duration, hits uint64) (wait time.Duration) // Rate returns a Pacer's instantaneous hit rate (per seconds) // at the given elapsed duration of an execution. Rate(elapsed time.Duration) float64 }
A Pacer defines the rate of hits during an Attack.
func NewConstantPacer ¶
Click to show internal directories.
Click to hide internal directories.