Versions in this module Expand all Collapse all v0 v0.77.0 Dec 5, 2026 Changes in this version + const CodeRateLimited + const MessageRateLimited + func Allow(ctx context.Context, limiter Limiter, identity *auth.Identity, toolName string) error + type Decision struct + Allowed bool + RetryAfter time.Duration + type FailOpenObserver interface + RecordFailOpen func(context.Context) + type Limiter interface + Allow func(ctx context.Context, toolName, userID string) (*Decision, error) + type RateLimitedError struct + RetryAfter time.Duration + func (*RateLimitedError) Code() int64 + func (*RateLimitedError) Error() string + func (e *RateLimitedError) Data() map[string]any