Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HTTPErrorMessages = map[int]echo.Map{ http.StatusForbidden: { "Code": "403", "Title": "Forbidden", "Header": "Denied!", "Description": "Sorry, you can't see that page. You'll find lots to explore on the home page.", }, http.StatusNotFound: { "Code": "404", "Title": "Page not found", "Header": "Something's missing.", "Description": "Sorry, we can't find that page. You'll find lots to explore on the home page.", }, http.StatusGone: { "Code": "410", "Title": "Gone", "Header": "And it's gone!", "Description": "Sorry, that page was deleted. You'll find lots to explore on the home page.", }, http.StatusInternalServerError: { "Code": "500", "Title": "Internal server error", "Header": "Uh-oh.", "Description": "We are already working to solve the problem.", }, http.StatusBadGateway: { "Code": "502", "Title": "Bad gateway", "Header": "D'oh!", "Description": "We are already working to solve the problem.", }, }
Functions ¶
func AuthOptional ¶
func AuthOptional(next echo.HandlerFunc) echo.HandlerFunc
func AuthRequired ¶
func AuthRequired(next echo.HandlerFunc) echo.HandlerFunc
func HTTPErrorHandler ¶
func HTTPErrorHandler(err error, c echo.Context)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.