middleware

package
v0.0.0-...-2a01338 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogHandler

func AccessLogHandler(logger log.Logger) echo.MiddlewareFunc

Types

type CustomValidator

type CustomValidator struct {
	Validator *validator.Validate
}

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

type HTTPErrorHandler

type HTTPErrorHandler struct {
	// contains filtered or unexported fields
}

func NewHTTPErrorHandler

func NewHTTPErrorHandler(errorStatusCodeMaps map[error]int) *HTTPErrorHandler

func (*HTTPErrorHandler) GetStatusCode

func (eh *HTTPErrorHandler) GetStatusCode(err error) int

func (*HTTPErrorHandler) Handler

func (eh *HTTPErrorHandler) Handler(logger log.Logger) func(err error, c echo.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL