v1

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_middleware_recovery_recovery_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Recovery

type Recovery struct {
	StackSize         int32 `protobuf:"varint,1,opt,name=stack_size,json=stackSize,proto3" json:"stack_size,omitempty"`                           // 异常栈大小,默认64 << 10
	DisableStackAll   bool  `protobuf:"varint,2,opt,name=disable_stack_all,json=disableStackAll,proto3" json:"disable_stack_all,omitempty"`       // 是否禁用所有异常栈,默认 false
	DisablePrintStack bool  `protobuf:"varint,3,opt,name=disable_print_stack,json=disablePrintStack,proto3" json:"disable_print_stack,omitempty"` // 是否禁用打印异常栈, 默认 false
	// contains filtered or unexported fields
}

异常恢复中间件配置

func (*Recovery) Descriptor deprecated

func (*Recovery) Descriptor() ([]byte, []int)

Deprecated: Use Recovery.ProtoReflect.Descriptor instead.

func (*Recovery) GetDisablePrintStack

func (x *Recovery) GetDisablePrintStack() bool

func (*Recovery) GetDisableStackAll

func (x *Recovery) GetDisableStackAll() bool

func (*Recovery) GetStackSize

func (x *Recovery) GetStackSize() int32

func (*Recovery) ProtoMessage

func (*Recovery) ProtoMessage()

func (*Recovery) ProtoReflect

func (x *Recovery) ProtoReflect() protoreflect.Message

func (*Recovery) Reset

func (x *Recovery) Reset()

func (*Recovery) String

func (x *Recovery) String() string

Jump to

Keyboard shortcuts

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