Documentation ¶ Index ¶ func IsInStatusCode(code int, list []string) bool type Try func (m *Try) Middleware() (echo.MiddlewareFunc, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsInStatusCode ¶ func IsInStatusCode(code int, list []string) bool Types ¶ type Try ¶ type Try struct { Regex string `cfg:"regex"` Replacement string `cfg:"replacement"` // StatusCodes is a comma separated list of status codes to redirect // 300-399, 401, 403, 404, 405, 408, 410, 500-505 StatusCodes string `cfg:"status_codes"` } func (*Try) Middleware ¶ func (m *Try) Middleware() (echo.MiddlewareFunc, error) Source Files ¶ View all Source files try.go Click to show internal directories. Click to hide internal directories.