recovery

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareBuilder

type MiddlewareBuilder struct {
	// contains filtered or unexported fields
}

func NewMiddlewareBuilder

func NewMiddlewareBuilder(l logger.Logger) *MiddlewareBuilder

func (*MiddlewareBuilder) AllowWriteStack

func (b *MiddlewareBuilder) AllowWriteStack() *MiddlewareBuilder

func (*MiddlewareBuilder) Build

func (b *MiddlewareBuilder) Build() gin.HandlerFunc

Build 用于替换gin框架的Recovery中间件,因为传入参数,再包一层

func (*MiddlewareBuilder) IsAbort

func (b *MiddlewareBuilder) IsAbort() *MiddlewareBuilder

Jump to

Keyboard shortcuts

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