Versions in this module Expand all Collapse all v0 v0.0.12 May 14, 2024 v0.0.11 May 13, 2024 v0.0.10 May 8, 2024 v0.0.9 May 6, 2024 v0.0.8 Apr 28, 2024 v0.0.7 Apr 22, 2024 v0.0.6 Apr 22, 2024 v0.0.5 Feb 27, 2024 v0.0.4 Feb 27, 2024 v0.0.3 Feb 27, 2024 v0.0.2 Feb 2, 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, isLambda bool) + type Config struct + AllowOrigins []string + BodyLimit string + BodyLimitSkipper middleware.Skipper + ContentSecurityPolicy string + Debug bool + Port int + ReadHeaderTimeout int + ReadTimeout int + 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) MarshalJSON() ([]byte, error) + func (he *HTTPError) SetInternal(err error) *HTTPError