Documentation ¶
Index ¶
- Variables
- type Recovery
- func (*Recovery) Descriptor() ([]byte, []int)deprecated
- func (x *Recovery) GetDisablePrintStack() bool
- func (x *Recovery) GetDisableStackAll() bool
- func (x *Recovery) GetStackSize() int32
- func (*Recovery) ProtoMessage()
- func (x *Recovery) ProtoReflect() protoreflect.Message
- func (x *Recovery) Reset()
- func (x *Recovery) String() string
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) GetDisablePrintStack ¶
func (*Recovery) GetDisableStackAll ¶
func (*Recovery) GetStackSize ¶
func (*Recovery) ProtoMessage ¶
func (*Recovery) ProtoMessage()
func (*Recovery) ProtoReflect ¶
func (x *Recovery) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.