Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetStatusCodeFilters() []*Config_StatusCodeFilter
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Config_StatusCodeFilter
- func (*Config_StatusCodeFilter) Descriptor() ([]byte, []int)deprecated
- func (x *Config_StatusCodeFilter) GetEquals() uint32
- func (m *Config_StatusCodeFilter) GetFilterType() isConfig_StatusCodeFilter_FilterType
- func (*Config_StatusCodeFilter) ProtoMessage()
- func (x *Config_StatusCodeFilter) ProtoReflect() protoreflect.Message
- func (x *Config_StatusCodeFilter) Reset()
- func (x *Config_StatusCodeFilter) String() string
- func (m *Config_StatusCodeFilter) Validate() error
- func (m *Config_StatusCodeFilter) ValidateAll() error
- type Config_StatusCodeFilterMultiError
- type Config_StatusCodeFilterValidationError
- func (e Config_StatusCodeFilterValidationError) Cause() error
- func (e Config_StatusCodeFilterValidationError) Error() string
- func (e Config_StatusCodeFilterValidationError) ErrorName() string
- func (e Config_StatusCodeFilterValidationError) Field() string
- func (e Config_StatusCodeFilterValidationError) Key() bool
- func (e Config_StatusCodeFilterValidationError) Reason() string
- type Config_StatusCodeFilter_Equals
Constants ¶
This section is empty.
Variables ¶
var File_config_middleware_accesslog_v1_accesslog_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // if no filter is specified all status codes are logged StatusCodeFilters []*Config_StatusCodeFilter `protobuf:"bytes,1,rep,name=status_code_filters,json=statusCodeFilters,proto3" json:"status_code_filters,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetStatusCodeFilters ¶
func (x *Config) GetStatusCodeFilters() []*Config_StatusCodeFilter
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Config_StatusCodeFilter ¶
type Config_StatusCodeFilter struct { // only equals filter type is supported for now // since there are only 16 codes for gRPC. We can // expand this to include a range filter type if need be. // // Types that are assignable to FilterType: // // *Config_StatusCodeFilter_Equals FilterType isConfig_StatusCodeFilter_FilterType `protobuf_oneof:"filter_type"` // contains filtered or unexported fields }
filter on an integer comparison of the status code
func (*Config_StatusCodeFilter) Descriptor
deprecated
func (*Config_StatusCodeFilter) Descriptor() ([]byte, []int)
Deprecated: Use Config_StatusCodeFilter.ProtoReflect.Descriptor instead.
func (*Config_StatusCodeFilter) GetEquals ¶
func (x *Config_StatusCodeFilter) GetEquals() uint32
func (*Config_StatusCodeFilter) GetFilterType ¶
func (m *Config_StatusCodeFilter) GetFilterType() isConfig_StatusCodeFilter_FilterType
func (*Config_StatusCodeFilter) ProtoMessage ¶
func (*Config_StatusCodeFilter) ProtoMessage()
func (*Config_StatusCodeFilter) ProtoReflect ¶
func (x *Config_StatusCodeFilter) ProtoReflect() protoreflect.Message
func (*Config_StatusCodeFilter) Reset ¶
func (x *Config_StatusCodeFilter) Reset()
func (*Config_StatusCodeFilter) String ¶
func (x *Config_StatusCodeFilter) String() string
func (*Config_StatusCodeFilter) Validate ¶
func (m *Config_StatusCodeFilter) Validate() error
Validate checks the field values on Config_StatusCodeFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config_StatusCodeFilter) ValidateAll ¶
func (m *Config_StatusCodeFilter) ValidateAll() error
ValidateAll checks the field values on Config_StatusCodeFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Config_StatusCodeFilterMultiError, or nil if none found.
type Config_StatusCodeFilterMultiError ¶
type Config_StatusCodeFilterMultiError []error
Config_StatusCodeFilterMultiError is an error wrapping multiple validation errors returned by Config_StatusCodeFilter.ValidateAll() if the designated constraints aren't met.
func (Config_StatusCodeFilterMultiError) AllErrors ¶
func (m Config_StatusCodeFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Config_StatusCodeFilterMultiError) Error ¶
func (m Config_StatusCodeFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Config_StatusCodeFilterValidationError ¶
type Config_StatusCodeFilterValidationError struct {
// contains filtered or unexported fields
}
Config_StatusCodeFilterValidationError is the validation error returned by Config_StatusCodeFilter.Validate if the designated constraints aren't met.
func (Config_StatusCodeFilterValidationError) Cause ¶
func (e Config_StatusCodeFilterValidationError) Cause() error
Cause function returns cause value.
func (Config_StatusCodeFilterValidationError) Error ¶
func (e Config_StatusCodeFilterValidationError) Error() string
Error satisfies the builtin error interface
func (Config_StatusCodeFilterValidationError) ErrorName ¶
func (e Config_StatusCodeFilterValidationError) ErrorName() string
ErrorName returns error name.
func (Config_StatusCodeFilterValidationError) Field ¶
func (e Config_StatusCodeFilterValidationError) Field() string
Field function returns field value.
func (Config_StatusCodeFilterValidationError) Key ¶
func (e Config_StatusCodeFilterValidationError) Key() bool
Key function returns key value.
func (Config_StatusCodeFilterValidationError) Reason ¶
func (e Config_StatusCodeFilterValidationError) Reason() string
Reason function returns reason value.
type Config_StatusCodeFilter_Equals ¶
type Config_StatusCodeFilter_Equals struct { // gRPC status code value Equals uint32 `protobuf:"varint,1,opt,name=equals,proto3,oneof"` }