package
0.0.698
Repository: https://github.com/ory/x.git
Documentation: pkg.go.dev

# Functions

DefaultAfter is the default func assigned to *Middleware.After.
DefaultBefore is the default func assigned to *Middleware.Before.
NewCustomMiddleware builds a *Middleware with the given level and formatter.
NewMiddleware returns a new *Middleware, yay!.
NewMiddlewareFromLogger returns a new *Middleware which writes to a given logrus logger.
StartMeasureExternalCall starts measuring the duration of an external call.
WithDisableExternalLatencyMeasurement returns a context that does not measure external latencies.
WithEnableExternalLatencyMeasurement returns a context that measures external latencies.

# Structs

Middleware is a middleware handler that logs the request as it goes in and the response as it goes out.

# Type aliases

AfterFunc is the func type used to modify or replace the *logrusx.Logger after calling the next func in the middleware chain.
BeforeFunc is the func type used to modify or replace the *logrusx.Logger prior to calling the next func in the middleware chain.