Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
Counter is a counter interface.
func NewRolling ¶
NewRolling creates a new window. windowTime is the time covering the entire window. windowBuckets is the number of buckets the window is divided into. An example: a 10 second window with 10 buckets will have 10 buckets covering 1 second each.
type Group ¶
type Group struct { // New optionally specifies a function to generate a counter. // It may not be changed concurrently with calls to other functions. New func() Counter // contains filtered or unexported fields }
Group is a counter group.
Click to show internal directories.
Click to hide internal directories.