Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMiddleware ¶
type AddMiddleware interface {
Add(*[]alice.Constructor, *app.Application)
}
* / Add middleware in App under certain condition..
type Middleware ¶
type Middleware struct { // all middleware AllMiddleware []AddMiddleware // middleware only included in application IncludeMiddleware []alice.Constructor }
func (*Middleware) AddMiddleware ¶
func (m *Middleware) AddMiddleware(middleware ...AddMiddleware)
func (Middleware) GetHandler ¶
func (m Middleware) GetHandler(h http.HandlerFunc) http.Handler
func (*Middleware) LoadApplication ¶
func (m *Middleware) LoadApplication(application *app.Application) []alice.Constructor
Method loading middleware for application
Click to show internal directories.
Click to hide internal directories.