Versions in this module Expand all Collapse all v0 v0.2.1 Oct 9, 2026 v0.2.0 Oct 8, 2026 Changes in this version + func WithIdentity(ctx context.Context, decision Decision) context.Context + type Decision struct + Allowed bool + Claims map[string]any + Identity any + Reason string + func Allow(identity any) Decision + func Deny(reason string) Decision + func IdentityFrom(ctx context.Context) (Decision, bool) + type Guard func(ctx context.Context, req *Request) (Decision, error) + type Request struct + ConnectionID string + Headers handler.Params + Kind handler.Kind + Method string + Query handler.Params + RequestID string + Route string + SourceIP string