Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticationMiddleware ¶
func AuthenticationMiddleware( next http.Handler, authenticator security.Authenticator, opts ...security.AuthOption, ) http.Handler
AuthenticationMiddleware is an HTTP middleware that verifies and extracts authentication data supplied in a JWT as an Authorization bearer token.
func ContextSetupMiddleware ¶
func ContextSetupMiddleware( mainCtx context.Context, next http.Handler, ctxFnList ...func(ctx context.Context) context.Context, ) http.Handler
ContextSetupMiddleware propagates logger in main context into HTTP context.
func LoggingMiddleware ¶
func LoggingMiddleware(next http.Handler, logBody bool) http.HandlerFunc
LoggingMiddleware — zero-alloc hot path, panic-safe, production-grade.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.