Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultApiErrorConfig is the default ApiError middleware config. DefaultTemplateConfig = TemplateConfig{ Skipper: emw.DefaultSkipper, } )
Functions ¶
func TemplateMiddleware ¶
func TemplateMiddleware() echo.MiddlewareFunc
ApiError returns a middleware that logs converts errors to json api errors.
func TemplateWithConfig ¶
func TemplateWithConfig(config TemplateConfig) echo.MiddlewareFunc
Types ¶
type TemplateConfig ¶
type TemplateConfig struct { // Skipper defines a function to skip middleware. Skipper emw.Skipper }
ApiErrorConfig defines the config for ApiError middleware.
Click to show internal directories.
Click to hide internal directories.