Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Limiter implements a simple token bucket rate limiter backed by KVS
func NewLimiter ¶
NewLimiter creates a new rate limiter backed by KVS rate: number of allowed requests interval: time window for the rate
Click to show internal directories.
Click to hide internal directories.