Versions in this module Expand all Collapse all v0 v0.0.1 Oct 10, 2021 Changes in this version + func ParseRate(formatted string) (*limiter.Rate, error) + type RateLimiter struct + func Get(name string) *RateLimiter + func GetOrNew(name string, periodSec, times int64) *RateLimiter + func GetOrNewFromFormatted(name, expr string) *RateLimiter + func (rl *RateLimiter) Estimate() time.Duration + func (rl *RateLimiter) GetBufferRate() float64 + func (rl *RateLimiter) SetBufferRate(br float64) + func (rl *RateLimiter) Wait() + func (rl *RateLimiter) WaitMore() + func (rl RateLimiter) String() string