Documentation ¶
Index ¶
Constants ¶
View Source
const ( RL_MAX_BITS = 8 RL_GC_TIME = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimits ¶
func New ¶
func New(hz, accuracy uint32) (*RateLimits, error)
func (*RateLimits) GcStart ¶
func (rl *RateLimits) GcStart(dataTimeout, gcInterval time.Duration) error
func (*RateLimits) GcStop ¶
func (rl *RateLimits) GcStop()
func (*RateLimits) Len ¶
func (rl *RateLimits) Len() int
func (*RateLimits) Update ¶
func (rl *RateLimits) Update(key string) bool
Click to show internal directories.
Click to hide internal directories.