Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HitCounter ¶
type HitCounter interface {
// Record stores a timestamp.
Record(uint64)
// Total returns number of recorded events.
Total() int
// Range returns the total counts inclusive.
Range(lower, upper uint64) int
}
HitCounter implements 3 methods.
func NewFasterHitCounter ¶
func NewFasterHitCounter() HitCounter
NewFasterHitCounter returns a new instance of a HitCounter.
func NewHitCounter ¶
func NewHitCounter() HitCounter
NewHitCounter returns a new instance of a HitCounter.
Click to show internal directories.
Click to hide internal directories.