Versions in this module Expand all Collapse all v0 v0.6.0 Nov 28, 2026 Changes in this version + func RetryAfterSeconds(wait time.Duration) int + func SetRetryAfter(h http.Header, wait time.Duration) + func WriteHeaders(h http.Header, result Result) + type Limiter struct + func New(requests int, window time.Duration, burst int) *Limiter + func (l *Limiter) Allow(key string) Result + func (l *Limiter) Count() int64 + func (l *Limiter) Update(requests int, window time.Duration, burst int) + type Result struct + Allowed bool + Limit int + Remaining int + ResetAt time.Time + RetryAfter time.Duration