Documentation ¶
Index ¶
- func HandlerFromList(middlewares []interfaces.IMiddleware) func(routeFunc interfaces.RouteFunc) interfaces.RouteFunc
- func HandlerFromStrings(app interfaces.IService, middlewares []string) func(routeFunc interfaces.RouteFunc) interfaces.RouteFunc
- func NewRestoreMiddleware(name string) interfaces.IMiddleware
- func NewTimeoutMiddleware(name string, cfg TimeoutMiddlewareConfig) interfaces.IMiddleware
- func NewTimingMiddleware(name string) interfaces.IMiddleware
- type RestoreMiddleware
- type TimeoutMiddleware
- type TimeoutMiddlewareConfig
- type TimingMiddleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerFromList ¶
func HandlerFromList(middlewares []interfaces.IMiddleware) func(routeFunc interfaces.RouteFunc) interfaces.RouteFunc
func HandlerFromStrings ¶
func HandlerFromStrings(app interfaces.IService, middlewares []string) func(routeFunc interfaces.RouteFunc) interfaces.RouteFunc
func NewRestoreMiddleware ¶ added in v0.0.11
func NewRestoreMiddleware(name string) interfaces.IMiddleware
func NewTimeoutMiddleware ¶ added in v0.0.11
func NewTimeoutMiddleware(name string, cfg TimeoutMiddlewareConfig) interfaces.IMiddleware
func NewTimingMiddleware ¶ added in v0.0.11
func NewTimingMiddleware(name string) interfaces.IMiddleware
Types ¶
type RestoreMiddleware ¶
type RestoreMiddleware struct { Name string // contains filtered or unexported fields }
func (*RestoreMiddleware) Init ¶
func (t *RestoreMiddleware) Init(app interfaces.IService) error
func (*RestoreMiddleware) Invoke ¶
func (t *RestoreMiddleware) Invoke(next interfaces.RouteFunc) interfaces.RouteFunc
func (*RestoreMiddleware) Stop ¶
func (t *RestoreMiddleware) Stop() error
func (*RestoreMiddleware) String ¶
func (t *RestoreMiddleware) String() string
type TimeoutMiddleware ¶ added in v0.0.11
type TimeoutMiddleware struct { Name string Config TimeoutMiddlewareConfig }
func (*TimeoutMiddleware) Init ¶ added in v0.0.11
func (t *TimeoutMiddleware) Init(app interfaces.IService) error
func (*TimeoutMiddleware) Invoke ¶ added in v0.0.11
func (t *TimeoutMiddleware) Invoke(next interfaces.RouteFunc) interfaces.RouteFunc
func (*TimeoutMiddleware) Stop ¶ added in v0.0.11
func (t *TimeoutMiddleware) Stop() error
func (*TimeoutMiddleware) String ¶ added in v0.0.11
func (t *TimeoutMiddleware) String() string
type TimeoutMiddlewareConfig ¶ added in v0.0.11
type TimingMiddleware ¶
type TimingMiddleware struct { Name string // contains filtered or unexported fields }
func (*TimingMiddleware) Init ¶
func (t *TimingMiddleware) Init(app interfaces.IService) error
func (*TimingMiddleware) Invoke ¶
func (t *TimingMiddleware) Invoke(next interfaces.RouteFunc) interfaces.RouteFunc
func (*TimingMiddleware) Stop ¶
func (t *TimingMiddleware) Stop() error
func (*TimingMiddleware) String ¶
func (t *TimingMiddleware) String() string
Click to show internal directories.
Click to hide internal directories.