Documentation
¶
Index ¶
- Variables
- type Logging
- func (*Logging) Descriptor() ([]byte, []int)deprecated
- func (x *Logging) GetDisabled() bool
- func (x *Logging) GetSlowThreshold() *durationpb.Duration
- func (x *Logging) GetTimeFormat() string
- func (*Logging) ProtoMessage()
- func (x *Logging) ProtoReflect() protoreflect.Message
- func (x *Logging) Reset()
- func (x *Logging) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_middleware_logging_v1_logging_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Logging ¶
type Logging struct {
Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"` // disable logging middleware, default is false
TimeFormat string `protobuf:"bytes,2,opt,name=time_format,json=timeFormat,proto3" json:"time_format,omitempty"` // time format, default is 2006-01-02T15:04:05.999Z0700
SlowThreshold *durationpb.Duration `protobuf:"bytes,3,opt,name=slow_threshold,json=slowThreshold,proto3" json:"slow_threshold,omitempty"` // slow threshold, default is 300ms
// contains filtered or unexported fields
}
logging middleware config.
func (*Logging) Descriptor
deprecated
func (*Logging) GetDisabled ¶ added in v1.0.14
func (*Logging) GetSlowThreshold ¶
func (x *Logging) GetSlowThreshold() *durationpb.Duration
func (*Logging) GetTimeFormat ¶
func (*Logging) ProtoMessage ¶
func (*Logging) ProtoMessage()
func (*Logging) ProtoReflect ¶
func (x *Logging) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.