Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Component = &component.Component{ Name: "runner.middleware.recover", Dependencies: component.Components{ runner.Component, }, Init: component.StepFunc(func(container container.Container) error { return container.Provide(NewRecover) }), Configuration: component.StepFunc(func(container container.Container) error { return container.Invoke(func(r runner.Runner, middleware *Recover) { r.Use(middleware) }) }), }
Functions ¶
This section is empty.
Types ¶
type Recover ¶
type Recover struct {
// contains filtered or unexported fields
}
func NewRecover ¶
func (*Recover) Middleware ¶
func (m *Recover) Middleware(process runner.Process, next runner.ProcessFunc) runner.ProcessFunc
Click to show internal directories.
Click to hide internal directories.