Documentation ¶
Index ¶
- func Handler(ep endpoint.Endpoint, opts ...Option) func(c echo.Context) error
- type Option
- func WithDecoder(decoder func(c echo.Context) (interface{}, error)) Option
- func WithEncoder(encoder func(c echo.Context, response interface{}) error) Option
- func WithErrorHandler(errorHandler func(c echo.Context, err error) error) Option
- func WithMiddleware(middlewares ...echo.MiddlewareFunc) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
Apply(o *options)
}
func WithDecoder ¶
func WithEncoder ¶
func WithErrorHandler ¶
func WithMiddleware ¶ added in v1.0.1
func WithMiddleware(middlewares ...echo.MiddlewareFunc) Option
Click to show internal directories.
Click to hide internal directories.