Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIErrHandler ¶
func APIErrHandler(defaultErr error, logger *zerolog.Logger, render render.Render) func(http.Handler) http.Handler
APIErrHandler intercept responses to verify if his status code is >= 500. If status is >= 500, it'll response with a default error. This middleware allows to response with the same error without disclosure internal information, also the real error is logged.
func LoggerRequest ¶
LoggerRequest some provided extra handler to set some request's context fields.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.