Versions in this module Expand all Collapse all v1 v1.0.1 Apr 19, 2024 Changes in this version + func PerDay(maxAttempts int) http.Limit + func PerDays(decayDays, maxAttempts int) http.Limit + func PerHour(maxAttempts int) http.Limit + func PerHours(decayHours, maxAttempts int) http.Limit + func PerMinute(maxAttempts int) http.Limit + func PerMinutes(decayMinutes, maxAttempts int) http.Limit + type Limit struct + DecayMinutes int + Key string + MaxAttempts int + ResponseCallback func(ctx http.Context) + func NewLimit(maxAttempts, decayMinutes int) *Limit + func (r *Limit) By(key string) http.Limit + func (r *Limit) Response(callable func(ctx http.Context)) http.Limit