Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultFactoryConfig = InjectFactoryConfig{ Skipper: middleware.DefaultSkipper, } )
View Source
var (
ErrFactoryNotFound = errors.New("unable to find factory in provided context")
)
Functions ¶
func GetFactory ¶
func InjectFactory ¶
func InjectFactory() echo.MiddlewareFunc
func InjectFactoryWithConfig ¶
func InjectFactoryWithConfig(config InjectFactoryConfig) echo.MiddlewareFunc
func MustGetFactory ¶
Types ¶
type InjectFactoryConfig ¶
type InjectFactoryConfig struct { // Skipper defines a function to skip middleware. Skipper middleware.Skipper // BeforeFunc defines a function which is executed just before the middleware. BeforeFunc middleware.BeforeFunc }
Click to show internal directories.
Click to hide internal directories.