Versions in this module Expand all Collapse all v0 v0.2.3 Jan 14, 2023 v0.2.2 Feb 23, 2022 Changes in this version + func Confirm(confirm chan<- struct{}) func() + type Limit struct + Now func() int64 + func New() *Limit + func (l *Limit) FlushAll() + func (l *Limit) GetSessions(user string) int + func (l *Limit) ProvisionalRequest(who string, exp int64) (func(), error) + func (l *Limit) Request(who string, exp int64) bool + func (l *Limit) WithFlush(ctx context.Context, interval time.Duration) *Limit + func (l *Limit) WithMax(max int) *Limit + func (l *Limit) WithNow(now func() int64) *Limit + func (l *Limit) WithProvisionalPeriod(interval time.Duration) *Limit