Versions in this module Expand all Collapse all v1 v1.0.2 Jan 8, 2024 v1.0.1 Jan 6, 2024 Changes in this version + const GenericErrorType + const InternalErrorType + const ValidationErrorType + var DefaultConfig = Config + func New(cfg *Config) *echo.Echo + func Start(e *echo.Echo, isDevelopment bool) + type Config struct + AllowOrigins []string + Debug bool + IsEnableSwagger bool + Port int + ReadTimeout int + Stage string + SwaggerPath string + WriteTimeout int + type CustomBinder struct + func NewBinder() *CustomBinder + func (cb *CustomBinder) Bind(i interface{}, c echo.Context) error + type CustomValidator struct + V *validator.Validate + func NewValidator() *CustomValidator + func (cv *CustomValidator) Validate(i interface{}) error + type ErrorHandler struct + func NewErrorHandler(e *echo.Echo) *ErrorHandler + func (ce *ErrorHandler) Handle(err error, c echo.Context) + type ErrorResponse struct + Error *HTTPError + type HTTPError struct + Code int + Internal error + Message string + Type string + func NewHTTPError(code int, etype string, message ...string) *HTTPError + func NewHTTPGenericError(message string) *HTTPError + func NewHTTPInternalError(message string) *HTTPError + func NewHTTPValidationError(message string) *HTTPError + func (he *HTTPError) Error() string + func (he *HTTPError) SetInternal(err error) *HTTPError v1.0.0 Dec 29, 2023