Documentation ¶
Overview ¶
Package ratelimiter provides an exceedingly simple rate limiter.
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 is a simple rate limiter.
func NewLimiter ¶
NewLimiter creates a new Limiter with a rate of limit per second.
Click to show internal directories.
Click to hide internal directories.