Documentation ¶ Index ¶ func NewZapMiddleware(name string, logger *zap.Logger) func(next http.Handler) http.Handler func Recoverer(next http.Handler) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewZapMiddleware ¶ func NewZapMiddleware(name string, logger *zap.Logger) func(next http.Handler) http.Handler NewZapMiddleware returns a new Zap Middleware handler. func Recoverer ¶ func Recoverer(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. Source Files ¶ View all Source files logging.go recoverer.go Click to show internal directories. Click to hide internal directories.