v1

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 {
	TimeFormat    string               `protobuf:"bytes,1,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,2,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) Descriptor() ([]byte, []int)

Deprecated: Use Logging.ProtoReflect.Descriptor instead.

func (*Logging) GetSlowThreshold

func (x *Logging) GetSlowThreshold() *durationpb.Duration

func (*Logging) GetTimeFormat

func (x *Logging) GetTimeFormat() string

func (*Logging) ProtoMessage

func (*Logging) ProtoMessage()

func (*Logging) ProtoReflect

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

func (*Logging) Reset

func (x *Logging) Reset()

func (*Logging) String

func (x *Logging) String() string

Jump to

Keyboard shortcuts

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