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: 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 {
	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
	// 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) GetAccessLevel added in v1.0.19

func (x *Logging) GetAccessLevel() string

func (*Logging) GetDisabled added in v1.0.14

func (x *Logging) GetDisabled() bool

func (*Logging) GetIgnoredRoutes added in v1.0.19

func (x *Logging) GetIgnoredRoutes() []string

func (*Logging) GetMetadata added in v1.0.19

func (x *Logging) GetMetadata() []*Metadata

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetKey added in v1.0.19

func (x *Metadata) GetKey() string

func (*Metadata) GetRename added in v1.0.19

func (x *Metadata) GetRename() string

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

func (*Metadata) Reset added in v1.0.19

func (x *Metadata) Reset()

func (*Metadata) String added in v1.0.19

func (x *Metadata) String() string

Jump to

Keyboard shortcuts

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