A ConstantPacer defines a constant rate of hits for the target.
| 30 | |
| 31 | // A ConstantPacer defines a constant rate of hits for the target. |
| 32 | type 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. |
| 38 | type Rate = ConstantPacer |
nothing calls this directly
no outgoing calls
no test coverage detected