Documentation ¶
Index ¶
- Variables
- type Logging
- func (*Logging) Descriptor() ([]byte, []int)deprecated
- func (x *Logging) GetAccessLevel() string
- func (x *Logging) GetDisabled() bool
- func (x *Logging) GetDumpRequest() bool
- func (x *Logging) GetDumpResponse() bool
- func (x *Logging) GetIgnoredRoutes() []string
- func (x *Logging) GetMetadata() []*Metadata
- 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
- type Metadata
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 AccessLevel string `protobuf:"bytes,4,opt,name=access_level,json=accessLevel,proto3" json:"access_level,omitempty"` // access level, default is info IgnoredRoutes []string `protobuf:"bytes,5,rep,name=ignored_routes,json=ignoredRoutes,proto3" json:"ignored_routes,omitempty"` // specify routes to be ignored Metadata []*Metadata `protobuf:"bytes,6,rep,name=metadata,proto3" json:"metadata,omitempty"` // specify metadata keys to print and rename DumpRequest bool `protobuf:"varint,7,opt,name=dump_request,json=dumpRequest,proto3" json:"dump_request,omitempty"` // dump request body, default is false DumpResponse bool `protobuf:"varint,8,opt,name=dump_response,json=dumpResponse,proto3" json:"dump_response,omitempty"` // dump response body, default is false // contains filtered or unexported fields }
logging middleware config.
func (*Logging) Descriptor
deprecated
func (*Logging) GetAccessLevel ¶ added in v1.0.19
func (*Logging) GetDisabled ¶ added in v1.0.14
func (*Logging) GetDumpRequest ¶ added in v1.0.22
func (*Logging) GetDumpResponse ¶ added in v1.0.22
func (*Logging) GetIgnoredRoutes ¶ added in v1.0.19
func (*Logging) GetMetadata ¶ added in v1.0.19
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
type Metadata ¶ added in v1.0.19
type Metadata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // metadata key Rename string `protobuf:"bytes,2,opt,name=rename,proto3" json:"rename,omitempty"` // renamed key // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
added in
v1.0.19
func (*Metadata) ProtoMessage ¶ added in v1.0.19
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v1.0.19
func (x *Metadata) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.