Versions in this module Expand all Collapse all v1 v1.0.0 Jun 19, 2018 Changes in this version + type CallbackParams struct + GroupID int + Limiter *Limiter + type Limiter struct + func New(o Options) (*Limiter, error) + func (limiter *Limiter) CancelFunc() context.CancelFunc + func (limiter *Limiter) Context() context.Context + func (limiter *Limiter) IsCallbackError() bool + func (limiter *Limiter) IsCanceled() bool + func (limiter *Limiter) IsDeadline() bool + func (limiter *Limiter) IsQueryLimit() bool + func (limiter *Limiter) IsRateError() bool + func (limiter *Limiter) LastError() error + func (limiter *Limiter) NumOfQueries() int + func (limiter *Limiter) NumOfQueriesByGroupID(id int) int + func (limiter *Limiter) Run() error + func (limiter *Limiter) Since() time.Duration + type Options struct + Callback func(cbp CallbackParams) error + Concurrency uint32 + Duration time.Duration + Limit uint32 + QPS uint32 + SignalHandler bool