Versions in this module Expand all Collapse all v1 v1.1.0 Jul 24, 2021 v1.0.0 May 10, 2021 Changes in this version + const KeyPrefix + type Limit struct + Burst int + Period time.Duration + Rate int + func PerHour(rate int) Limit + func PerMinute(rate int) Limit + func PerSecond(rate int) Limit + func (l Limit) String() string + type Limiter interface + Acquire func(string, Limit) (Result, error) + type Result struct + Acquired bool + Limit Limit + Remaining int + ResetAfer int + RetryAfter int