Documentation
¶
Index ¶
Constants ¶
View Source
const ( BUCKETS = 16 BUCKET_MASK = BUCKETS - 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedTracker ¶
type CachedTracker struct {
// contains filtered or unexported fields
}
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
func Configure ¶
func Configure() *Configuration
func (*Configuration) Allowance ¶
func (c *Configuration) Allowance(allowance int) *Configuration
The number of events allowed per second [5]
func (*Configuration) MaxItems ¶
func (c *Configuration) MaxItems(max int) *Configuration
The max number of items to track [5000]
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) PushToFront ¶
func (l *List) PushToFront(item *CachedTracker)
func (*List) Remove ¶
func (l *List) Remove(item *CachedTracker)
Click to show internal directories.
Click to hide internal directories.