Versions in this module Expand all Collapse all v0 v0.5.3 Jun 12, 2026 v0.5.2 May 18, 2026 Changes in this version + const DefaultMaxBuckets + func KeyByIP(r *http.Request) string + type Limiter struct + func New(burst int, per, evictAfter time.Duration) *Limiter + func NewWithCap(burst int, per, evictAfter time.Duration, maxBuckets int) *Limiter + func (l *Limiter) Allow(key string) bool + func (l *Limiter) HTTPMiddleware(keyFn func(*http.Request) string, onReject func(*http.Request, string)) func(http.Handler) http.Handler