recovery

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle() gin.HandlerFunc

CustomRecovery 自定义错误(panic等)拦截中间件、对可能发生的错误进行拦截、统一记录

Types

type PanicExceptionRecord

type PanicExceptionRecord struct{}

func (*PanicExceptionRecord) Write

func (p *PanicExceptionRecord) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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