recover

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: MIT Imports: 6 Imported by: 0

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 NewRecover(logger logger.Logger) *Recover

func (*Recover) Middleware

func (m *Recover) Middleware(process runner.Process, next runner.ProcessFunc) runner.ProcessFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL