Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHTTPHandler ¶
func ErrorHTTPHandler(logger *logrus.Entry, f ErrorHandlerFunc) http.HandlerFunc
ErrorHTTPHandler is a conversion function that sets up a http.StatusInternalServerError if an error is returned
func FourZeroFour ¶
FourZeroFour is the standard 404 handler.
Types ¶
type ErrorHandlerFunc ¶
type ErrorHandlerFunc func(http.ResponseWriter, *http.Request) error
ErrorHandlerFunc is a http handler that can return an error for standard logging and a 500 response
Click to show internal directories.
Click to hide internal directories.