recovery

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Next:             nil,
	SendMessage:      true,
	Message:          &defaultMessage,
	EnableStackTrace: true,
	RecoveryHandler:  nil,
}

ConfigDefault is the default config

Functions

func New

func New(config ...Config) fiber.Handler

New creates a new middleware handler

Types

type Config

type Config struct {
	Next             func(c *fiber.Ctx) bool
	SendMessage      bool
	Message          *string
	EnableStackTrace bool
	RecoveryHandler  func(c *fiber.Ctx)
}

Config defines the config for recovery middleware.

Jump to

Keyboard shortcuts

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