middleware

package
v2.1.50 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recovery added in v2.1.23

func Recovery() gin.HandlerFunc

Recovery gin middleware recovery

func SetContextData

func SetContextData(key string, value interface{}) gin.HandlerFunc

SetContextData is used to store a new key/value pair exclusively for this context.

Types

type RecoverInfo added in v2.1.23

type RecoverInfo struct {
	Time       string      `json:"time"`
	RequestURI string      `json:"request_uri"`
	Err        interface{} `json:"error"`
	Stack      string      `json:"stack"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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