Documentation ¶
Index ¶
- Variables
- type Selector
- func (*Selector) Descriptor() ([]byte, []int)deprecated
- func (x *Selector) GetEnabled() bool
- func (x *Selector) GetNames() []string
- func (x *Selector) GetPaths() []string
- func (x *Selector) GetPrefixes() []string
- func (x *Selector) GetRegex() string
- func (*Selector) ProtoMessage()
- func (x *Selector) ProtoReflect() protoreflect.Message
- func (x *Selector) Reset()
- func (x *Selector) String() string
- func (m *Selector) Validate() error
- func (m *Selector) ValidateAll() error
- type SelectorMultiError
- type SelectorValidationError
Constants ¶
This section is empty.
Variables ¶
var File_middleware_selector_v1_selector_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Selector ¶
type Selector struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` Paths []string `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"` Regex string `protobuf:"bytes,4,opt,name=regex,proto3" json:"regex,omitempty"` Prefixes []string `protobuf:"bytes,5,rep,name=prefixes,proto3" json:"prefixes,omitempty"` // contains filtered or unexported fields }
Selector
func (*Selector) Descriptor
deprecated
func (*Selector) GetEnabled ¶
func (*Selector) GetPrefixes ¶
func (*Selector) ProtoMessage ¶
func (*Selector) ProtoMessage()
func (*Selector) ProtoReflect ¶
func (x *Selector) ProtoReflect() protoreflect.Message
func (*Selector) Validate ¶
Validate checks the field values on Selector 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 (*Selector) ValidateAll ¶
ValidateAll checks the field values on Selector 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 SelectorMultiError, or nil if none found.
type SelectorMultiError ¶
type SelectorMultiError []error
SelectorMultiError is an error wrapping multiple validation errors returned by Selector.ValidateAll() if the designated constraints aren't met.
func (SelectorMultiError) AllErrors ¶
func (m SelectorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SelectorMultiError) Error ¶
func (m SelectorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SelectorValidationError ¶
type SelectorValidationError struct {
// contains filtered or unexported fields
}
SelectorValidationError is the validation error returned by Selector.Validate if the designated constraints aren't met.
func (SelectorValidationError) Cause ¶
func (e SelectorValidationError) Cause() error
Cause function returns cause value.
func (SelectorValidationError) Error ¶
func (e SelectorValidationError) Error() string
Error satisfies the builtin error interface
func (SelectorValidationError) ErrorName ¶
func (e SelectorValidationError) ErrorName() string
ErrorName returns error name.
func (SelectorValidationError) Field ¶
func (e SelectorValidationError) Field() string
Field function returns field value.
func (SelectorValidationError) Key ¶
func (e SelectorValidationError) Key() bool
Key function returns key value.
func (SelectorValidationError) Reason ¶
func (e SelectorValidationError) Reason() string
Reason function returns reason value.