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 used to limit the rate at which work is done
func New ¶
New creates a rate limiter that can be used to throttle work to target rate per second. The returned ratelimiter is started and ready to throttle.
func (*Limiter) Start ¶
func (l *Limiter) Start()
Start a stopped ratelimiter if the rate limiter is already started the operation does nothing.
Click to show internal directories.
Click to hide internal directories.