wrr_localityv3

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 19 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_load_balancing_policies_wrr_locality_v3_wrr_locality_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type WrrLocality

type WrrLocality struct {

	// The child LB policy to create for endpoint-picking within the chosen locality.
	EndpointPickingPolicy *v3.LoadBalancingPolicy `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration for the wrr_locality LB policy. See the :ref:`load balancing architecture overview <arch_overview_load_balancing_types>` for more information.

func (*WrrLocality) Descriptor deprecated

func (*WrrLocality) Descriptor() ([]byte, []int)

Deprecated: Use WrrLocality.ProtoReflect.Descriptor instead.

func (*WrrLocality) GetEndpointPickingPolicy

func (x *WrrLocality) GetEndpointPickingPolicy() *v3.LoadBalancingPolicy

func (*WrrLocality) ProtoMessage

func (*WrrLocality) ProtoMessage()

func (*WrrLocality) ProtoReflect

func (x *WrrLocality) ProtoReflect() protoreflect.Message

func (*WrrLocality) Reset

func (x *WrrLocality) Reset()

func (*WrrLocality) String

func (x *WrrLocality) String() string

func (*WrrLocality) Validate

func (m *WrrLocality) Validate() error

Validate checks the field values on WrrLocality 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 (*WrrLocality) ValidateAll

func (m *WrrLocality) ValidateAll() error

ValidateAll checks the field values on WrrLocality 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 WrrLocalityMultiError, or nil if none found.

type WrrLocalityMultiError

type WrrLocalityMultiError []error

WrrLocalityMultiError is an error wrapping multiple validation errors returned by WrrLocality.ValidateAll() if the designated constraints aren't met.

func (WrrLocalityMultiError) AllErrors

func (m WrrLocalityMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WrrLocalityMultiError) Error

func (m WrrLocalityMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type WrrLocalityValidationError

type WrrLocalityValidationError struct {
	// contains filtered or unexported fields
}

WrrLocalityValidationError is the validation error returned by WrrLocality.Validate if the designated constraints aren't met.

func (WrrLocalityValidationError) Cause

Cause function returns cause value.

func (WrrLocalityValidationError) Error

Error satisfies the builtin error interface

func (WrrLocalityValidationError) ErrorName

func (e WrrLocalityValidationError) ErrorName() string

ErrorName returns error name.

func (WrrLocalityValidationError) Field

Field function returns field value.

func (WrrLocalityValidationError) Key

Key function returns key value.

func (WrrLocalityValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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