Documentation ¶
Index ¶
- type Items
- type Limiter
- func (c *Limiter) GetStats() (res []*proto.RateLimit)
- func (c *Limiter) Load(id string) *Items
- func (c *Limiter) LoadAll() (res []*Items)
- func (c *Limiter) New(option ratelimit.Config) *Items
- func (c *Limiter) NewOrLoad(option ratelimit.Config) *Items
- func (c *Limiter) OnRateUpdate(id string, cb func(string, int64))
- func (c *Limiter) Remove(option ratelimit.Config)
- func (c *Limiter) Reporter(cfg ratelimit.Config, cur int64)
- type LimiterType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.