Documentation ¶
Index ¶
- func Cache(age time.Duration) echo.MiddlewareFunc
- func ConfigValidator(e *echo.Echo)
- func Dump(filename ...string) echo.MiddlewareFunc
- func HTTPErrorHandler(err error, c echo.Context)
- func IntranetOnly(next echo.HandlerFunc) echo.HandlerFunc
- func JWT(key []byte, method *jwt.SigningMethodHMAC, skipper func(echo.Context) bool) echo.MiddlewareFunc
- func NoCache(next echo.HandlerFunc) echo.HandlerFunc
- func NoIndex(next echo.HandlerFunc) echo.HandlerFunc
- type EchoValidator
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigValidator ¶
func ConfigValidator(e *echo.Echo)
ConfigValidator enable echo use ext validation framework ref: https://github.com/go-playground/validator
func HTTPErrorHandler ¶
func HTTPErrorHandler(err error, c echo.Context)
func IntranetOnly ¶ added in v1.0.17
func IntranetOnly(next echo.HandlerFunc) echo.HandlerFunc
IntranetOnly middleware for only allow intranet access
Types ¶
type EchoValidator ¶ added in v1.0.11
type EchoValidator struct { Validator *validator.Validate // contains filtered or unexported fields }
func (*EchoValidator) Bind ¶ added in v1.0.11
func (t *EchoValidator) Bind(i interface{}, c echo.Context) error
func (*EchoValidator) Validate ¶ added in v1.0.11
func (t *EchoValidator) Validate(i interface{}) error
type Timestamp ¶
func (*Timestamp) MarshalJSON ¶
MarshalJSON echo api json response
func (*Timestamp) UnmarshalJSON ¶
func (*Timestamp) UnmarshalParam ¶
UnmarshalParam echo api @see https://echo.labstack.com/guide/request
Click to show internal directories.
Click to hide internal directories.