Versions in this module Expand all Collapse all v1 v1.0.2 Sep 27, 2023 v1.0.1 May 23, 2023 Changes in this version + type Bucket struct + Batch int64 + Cycle int64 + Max int64 + func (bucket *Bucket) GetToken(num int64) bool + func (bucket *Bucket) NewTokenLimiter() + type Period struct + Max int64 + Size int64 + func (period *Period) GetPermit(addr string) bool + func (period *Period) NewAddrLimiter()