Documentation ¶ Index ¶ type Limiter func NewLimiter(resetAfter time.Duration, limit int) *Limiter func NewLimiterInit(resetAfter time.Duration, limit int, init int) *Limiter func (v *Limiter) Update(resetAfter time.Duration, limit int) func (v *Limiter) Wait(ctx context.Context) error 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 } func NewLimiter ¶ func NewLimiter(resetAfter time.Duration, limit int) *Limiter func NewLimiterInit ¶ func NewLimiterInit(resetAfter time.Duration, limit int, init int) *Limiter func (*Limiter) Update ¶ func (v *Limiter) Update(resetAfter time.Duration, limit int) func (*Limiter) Wait ¶ func (v *Limiter) Wait(ctx context.Context) error Source Files ¶ View all Source files limiter.go Click to show internal directories. Click to hide internal directories.