package
0.74.0
Repository: https://github.com/beatlabs/patron.git
Documentation: pkg.go.dev

# Functions

Chain chains middlewares to a handler func.
NewAppNameVersion adds an app method header and an app path header to all responses.
NewAuth creates a Func that implements authentication using an Authenticator.
NewCaching creates a cache layer as a middleware when used as part of a middleware chain any middleware later in the chain, will not be executed, but the headers it appends will be part of the cache.
NewCompression initializes a compression middleware.
NewInjectObservability injects a correlation ID unless one is already present.
NewLoggingTracing creates a Func that continues a tracing span and finishes it.
NewRateLimiting creates a Func that adds a rate limit to a route.
NewRecovery creates a Func that ensures recovery and no panic.
No description provided by the author

# Structs

No description provided by the author

# Type aliases

Func type declaration of middleware func.