package
0.0.0-20170824085639-9862ebaddb9e
Repository: https://github.com/akagi201/middleware.git
Documentation: pkg.go.dev

# Functions

DefaultAfter is the default func assigned to *Middleware.After.
DefaultBefore is the default func assigned to *Middleware.Before.
New creates a new default middleware func.
NewLogger creates a new middleware func which writes to a given logrus logger.

# Structs

Middleware is a middleware handler that logs the request as it goes in and the response as it goes out.
ResponseWrapper wrapper to capture status.

# Type aliases

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