Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶ added in v0.6.0
type Bucket struct {
// contains filtered or unexported fields
}
Bucket implements a thread-safe leaky bucket rate limiter.
type Limiter ¶
type Limiter struct {
*Bucket
}
Limiter wrapper around standard rate.Limiter.
func NewLimiter ¶
NewLimiter returns new bandwidth limiter.
Click to show internal directories.
Click to hide internal directories.