Documentation ¶
Index ¶
- Variables
- type Random
- func (*Random) Descriptor() ([]byte, []int)deprecated
- func (x *Random) GetLocalityLbConfig() *v3.LocalityLbConfig
- func (*Random) ProtoMessage()
- func (x *Random) ProtoReflect() protoreflect.Message
- func (x *Random) Reset()
- func (x *Random) String() string
- func (m *Random) Validate() error
- func (m *Random) ValidateAll() error
- type RandomMultiError
- type RandomValidationError
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_load_balancing_policies_random_v3_random_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Random ¶
type Random struct { // Configuration for local zone aware load balancing or locality weighted load balancing. LocalityLbConfig *v3.LocalityLbConfig `protobuf:"bytes,1,opt,name=locality_lb_config,json=localityLbConfig,proto3" json:"locality_lb_config,omitempty"` // contains filtered or unexported fields }
This configuration allows the built-in Random LB policy to be configured via the LB policy extension point. See the :ref:`load balancing architecture overview <arch_overview_load_balancing_types>` for more information.
func (*Random) Descriptor
deprecated
func (*Random) GetLocalityLbConfig ¶
func (x *Random) GetLocalityLbConfig() *v3.LocalityLbConfig
func (*Random) ProtoMessage ¶
func (*Random) ProtoMessage()
func (*Random) ProtoReflect ¶
func (x *Random) ProtoReflect() protoreflect.Message
func (*Random) Validate ¶
Validate checks the field values on Random 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 (*Random) ValidateAll ¶
ValidateAll checks the field values on Random 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 RandomMultiError, or nil if none found.
type RandomMultiError ¶
type RandomMultiError []error
RandomMultiError is an error wrapping multiple validation errors returned by Random.ValidateAll() if the designated constraints aren't met.
func (RandomMultiError) AllErrors ¶
func (m RandomMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RandomMultiError) Error ¶
func (m RandomMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RandomValidationError ¶
type RandomValidationError struct {
// contains filtered or unexported fields
}
RandomValidationError is the validation error returned by Random.Validate if the designated constraints aren't met.
func (RandomValidationError) Cause ¶
func (e RandomValidationError) Cause() error
Cause function returns cause value.
func (RandomValidationError) Error ¶
func (e RandomValidationError) Error() string
Error satisfies the builtin error interface
func (RandomValidationError) ErrorName ¶
func (e RandomValidationError) ErrorName() string
ErrorName returns error name.
func (RandomValidationError) Field ¶
func (e RandomValidationError) Field() string
Field function returns field value.
func (RandomValidationError) Key ¶
func (e RandomValidationError) Key() bool
Key function returns key value.
func (RandomValidationError) Reason ¶
func (e RandomValidationError) Reason() string
Reason function returns reason value.