recoverhandler

package
v0.0.0-...-a45d15d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseRecover

func UseRecover(ctx context.Context, instance *echo.Echo)

UseRecover recovers by panic

Types

type Config

type Config struct {
	StackSize         int  `env:"RECOVER_STACK_SIZE" envDefault:"4096"` // 4 KB
	DisableStackAll   bool `env:"RECOVER_DISABLE_STACK_ALL"`
	DisablePrintStack bool `env:"RECOVER_DISABLE_PRINT_STACK"`
}

func (*Config) Provide

func (cfg *Config) Provide()

Provide provides configuration for recover

Jump to

Keyboard shortcuts

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