package
0.0.0-20240621141759-f9509b098ee8
Repository: https://github.com/datadog/attache.git
Documentation: pkg.go.dev
# Functions
Every converts a minimum time interval between events to a Limit.
NewLimiter returns a new Limiter that allows events up to rate r and permits bursts of at most b tokens.
# Constants
Inf is the infinite rate limit; it allows all events (even if burst is zero).
InfDuration is the duration returned by Delay when a Reservation is not OK.
# Structs
A Limiter controls how frequently events are allowed to happen.
A Reservation holds information about events that are permitted by a Limiter to happen after a delay.
# Type aliases
Limit defines the maximum frequency of some events.