Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomHTTPErrorHandler ¶ added in v0.0.17
CustomHTTPErrorHandler is a centralized error handler for all Echo routes Set this as Echo's HTTPErrorHandler to automatically handle all errors
func HandleError ¶
HandleError converts any error to an HTTP response It's especially helpful for handling our custom ContextualError
func RequestLogger ¶
func RequestLogger(logger *logging.ZapEventLogger) echo.MiddlewareFunc
Types ¶
type ErrorResponse ¶ added in v0.0.18
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse represents a structured error response
Click to show internal directories.
Click to hide internal directories.