Documentation ¶
Overview ¶
Package middleware contains default middleware implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerMiddleware ¶
type LoggerMiddleware struct { HexOutput bool `mapstructure:"hex_output"` // contains filtered or unexported fields }
LoggerMiddleware is middleware that will log all request/responses at a configured level
func (*LoggerMiddleware) HandleEvent ¶
func (l *LoggerMiddleware) HandleEvent(e muxy.ProxyEvent, ctx *muxy.Context)
HandleEvent takes a ProxyEvent and acts on the information provided
func (LoggerMiddleware) Teardown ¶
func (LoggerMiddleware) Teardown()
Teardown shuts down the middleware
Click to show internal directories.
Click to hide internal directories.