Versions in this module Expand all Collapse all v1 v1.0.0 Aug 26, 2026 Changes in this version + var ErrNilAuthorizer = errors.New("HTTP authorization authorizer is nil") + var ErrNilNextHandler = errors.New("HTTP authorization next handler is nil") + var ErrNilRequestMapper = errors.New("HTTP authorization request mapper is nil") + func DecisionFromContext(ctx context.Context) (authorization.Decision, bool) + func ErrorFromContext(ctx context.Context) (error, bool) + func NewHandler(authorizer Authorizer, mapper RequestMapper, next http.Handler, ...) (http.Handler, error) + type Authorizer interface + Decide func(context.Context, authorization.Request) (authorization.Decision, error) + type Option func(*options) + func WithDeniedHandler(handler http.Handler) Option + func WithErrorHandler(handler http.Handler) Option + type RequestMapper func(*http.Request) (authorization.Request, error)