package
0.0.0-20170519063250-aacc5d2b87db
Repository: https://github.com/tobieiss/gomiddlewarechain.git
Documentation: pkg.go.dev

# Functions

JSONResponseContextHandler wrap the response in a standard json structure.
JSONResponseHandler wrap the response in a standard json structure.
LogContextHandler log requests Use this context-handler to log every call to console.
LogHandler log requests.
MethodNotAllowedResponseHandler handle the default 405 errors with JSONResponseHandler.
NewLoggerHandler creates a new LoggerHandler.
NotFoundResponseHandler handle the default 404 errors with JSONResponseHandler.
PanicHandler handle all crashes with a proper JSONResponseHandler response.
Ping route should just respond with pong.

# Constants

JSONContentType The default content-type.

# Variables

LoggerContextKey a key to map the logger.

# Structs

LoggerHandler holds the logger-instance.