Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recoverer ¶
func Recoverer(renderer common.Renderer, logger zerolog.Logger) func(next http.Handler) http.Handler
Recoverer is a middleware that recovers from panics, logs the panic (and a backtrace), and returns a HTTP 500 (Internal Server Error) status if possible. Recoverer prints a request ID if one is provided.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.