Documentation
¶
Overview ¶
Package middleware provides middleware support to the web package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger(logger *zerolog.Logger) web.MidHandler
Logger is a middleware that provides request logging and injects request trace ID into the context logger.
func PanicRecovery ¶
func PanicRecovery() web.MidHandler
PanicRecovery is a middleware that provides panic recovery. Logs the panic details, and prevents the application from crashing.
Types ¶
Click to show internal directories.
Click to hide internal directories.