Versions in this module Expand all Collapse all v1 v1.0.3 May 3, 2020 v1.0.2 May 2, 2020 Changes in this version + type RateLimit struct + MaxRate int64 + func NewRateLimit(maxRate int64) *RateLimit + func (rl *RateLimit) Add(count int64) + func (rl *RateLimit) SetInterval(i time.Duration) + func (rl *RateLimit) Stop() + type Speeds struct + func (sps *Speeds) Add(count int64) + func (sps *Speeds) GetSpeeds() (speeds int64) + func (sps *Speeds) SetInterval(interval time.Duration)