Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + func MiddlewareFunc(requestsPerSecond float64, burstSize int) func(http.Handler) http.Handler + type Config struct + BurstSize int + CleanupInterval time.Duration + Enabled bool + RequestsPerSecond float64 + func DefaultConfig() *Config + type Limiter struct + func NewLimiter(config *Config) *Limiter + func (l *Limiter) Allow(key string) bool + func (l *Limiter) Middleware(next http.Handler) http.Handler + func (l *Limiter) RemainingTokens(key string) int + func (l *Limiter) ResetAfter(key string) time.Duration + func (l *Limiter) Stop()