MCPcopy
hub / github.com/tsenart/vegeta / ConstantPacer

Struct ConstantPacer

lib/pacer.go:32–35  ·  view source on GitHub ↗

A ConstantPacer defines a constant rate of hits for the target.

Source from the content-addressed store, hash-verified

30
31// A ConstantPacer defines a constant rate of hits for the target.
32type ConstantPacer struct {
33 Freq int // Frequency (number of occurrences) per ...
34 Per time.Duration // Time unit, usually 1s
35}
36
37// Rate is a type alias for ConstantPacer for backwards-compatibility.
38type Rate = ConstantPacer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected