Versions in this module Expand all Collapse all v1 v1.0.0 Oct 26, 2021 Changes in this version + var KeyHandler key = "custom_handler" + func ErrorHandler(err error, c echo.Context) + func NewHandler(ctxFunc ContextFunc) echo.HandlerFunc + type ConfFunc func(*Config) error + type Config struct + func New() *Config + func Setup() *Config + func (h *Config) HealthCheck(enabled bool) + func (h *Config) Serve() error + func (h *Config) Set(conf ...ConfFunc) error + func (h *Config) SetPort(port string) + func (h *Config) Stop() error + type Context struct + func (c *Context) GetContext() context.Context + func (c *Context) JSONErr(err *HTTPError) error + func (c *Context) JSONR(statusCode int, data interface{}) error + func (c *Context) Trace() string + type ContextFunc func(*Context) error + type HTTPError struct + Code string + Details interface{} + DeveloperMessage string + DeveloperTrace string + Message string + RequestID string + StatusCode int + func ErrInternalServerError(err error) *HTTPError + func ErrNotFound() *HTTPError + func ErrUnauthorized(err error) *HTTPError + func ErrValidation(errs validation.Errors) *HTTPError + func (e HTTPError) Error() string + type JSONResponse struct + Code int + RequestID string + Result interface{} + type Params map[string]interface