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 instances are thread-safe.
func (*Limiter) Undo ¶
func (rl *Limiter) Undo()
Undo reverts the last Limit() call, returning consumed allowance
func (*Limiter) UpdateRate ¶
UpdateRate allows to update the allowed rate
Click to show internal directories.
Click to hide internal directories.