Documentation
¶
Index ¶
- Variables
- type HeaderValue
- func (*HeaderValue) Descriptor() ([]byte, []int)deprecated
- func (x *HeaderValue) GetKey() string
- func (x *HeaderValue) GetValue() string
- func (*HeaderValue) ProtoMessage()
- func (x *HeaderValue) ProtoReflect() protoreflect.Message
- func (x *HeaderValue) Reset()
- func (x *HeaderValue) String() string
- func (m *HeaderValue) Validate() error
- func (m *HeaderValue) ValidateAll() error
- type HeaderValueMultiError
- type HeaderValueValidationError
- func (e HeaderValueValidationError) Cause() error
- func (e HeaderValueValidationError) Error() string
- func (e HeaderValueValidationError) ErrorName() string
- func (e HeaderValueValidationError) Field() string
- func (e HeaderValueValidationError) Key() bool
- func (e HeaderValueValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_plugins_api_v1_header_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type HeaderValue ¶
type HeaderValue struct {
// Header name.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Header value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*HeaderValue) Descriptor
deprecated
func (*HeaderValue) Descriptor() ([]byte, []int)
Deprecated: Use HeaderValue.ProtoReflect.Descriptor instead.
func (*HeaderValue) GetKey ¶
func (x *HeaderValue) GetKey() string
func (*HeaderValue) GetValue ¶
func (x *HeaderValue) GetValue() string
func (*HeaderValue) ProtoMessage ¶
func (*HeaderValue) ProtoMessage()
func (*HeaderValue) ProtoReflect ¶
func (x *HeaderValue) ProtoReflect() protoreflect.Message
func (*HeaderValue) Reset ¶
func (x *HeaderValue) Reset()
func (*HeaderValue) String ¶
func (x *HeaderValue) String() string
func (*HeaderValue) Validate ¶
func (m *HeaderValue) Validate() error
Validate checks the field values on HeaderValue 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 (*HeaderValue) ValidateAll ¶
func (m *HeaderValue) ValidateAll() error
ValidateAll checks the field values on HeaderValue 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 HeaderValueMultiError, or nil if none found.
type HeaderValueMultiError ¶
type HeaderValueMultiError []error
HeaderValueMultiError is an error wrapping multiple validation errors returned by HeaderValue.ValidateAll() if the designated constraints aren't met.
func (HeaderValueMultiError) AllErrors ¶
func (m HeaderValueMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HeaderValueMultiError) Error ¶
func (m HeaderValueMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HeaderValueValidationError ¶
type HeaderValueValidationError struct {
// contains filtered or unexported fields
}
HeaderValueValidationError is the validation error returned by HeaderValue.Validate if the designated constraints aren't met.
func (HeaderValueValidationError) Cause ¶
func (e HeaderValueValidationError) Cause() error
Cause function returns cause value.
func (HeaderValueValidationError) Error ¶
func (e HeaderValueValidationError) Error() string
Error satisfies the builtin error interface
func (HeaderValueValidationError) ErrorName ¶
func (e HeaderValueValidationError) ErrorName() string
ErrorName returns error name.
func (HeaderValueValidationError) Field ¶
func (e HeaderValueValidationError) Field() string
Field function returns field value.
func (HeaderValueValidationError) Key ¶
func (e HeaderValueValidationError) Key() bool
Key function returns key value.
func (HeaderValueValidationError) Reason ¶
func (e HeaderValueValidationError) Reason() string
Reason function returns reason value.