selectorv1

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_runtime_selector_v1_selector_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SelectorConfig

type SelectorConfig struct {

	// version is a filter for the service version.
	// e.g., "v1.0.0"
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// strategy specifies the load balancing strategy (e.g., "round_robin", "random", "consistent_hash").
	Strategy *string `protobuf:"bytes,2,opt,name=strategy,proto3,oneof" json:"strategy,omitempty"`
	// balancer_name specifies the name of the load balancer to use.
	BalancerName *string `protobuf:"bytes,3,opt,name=balancer_name,proto3,oneof" json:"balancer_name,omitempty"`
	// filter_name specifies the name of the filter to use for endpoint selection.
	FilterName *string `protobuf:"bytes,4,opt,name=filter_name,proto3,oneof" json:"filter_name,omitempty"`
	// custom_config allows for custom configuration for the selector.
	// It can be used for non-standard or user-defined selector implementations.
	Customize *structpb.Struct `protobuf:"bytes,100,opt,name=customize,proto3,oneof" json:"customize,omitempty"`
	// contains filtered or unexported fields
}

SelectorConfig defines the configuration for a client-side selector (e.g., load balancer).

func (*SelectorConfig) Descriptor deprecated

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

Deprecated: Use SelectorConfig.ProtoReflect.Descriptor instead.

func (*SelectorConfig) GetBalancerName

func (x *SelectorConfig) GetBalancerName() string

func (*SelectorConfig) GetCustomize

func (x *SelectorConfig) GetCustomize() *structpb.Struct

func (*SelectorConfig) GetFilterName

func (x *SelectorConfig) GetFilterName() string

func (*SelectorConfig) GetStrategy

func (x *SelectorConfig) GetStrategy() string

func (*SelectorConfig) GetVersion

func (x *SelectorConfig) GetVersion() string

func (*SelectorConfig) ProtoMessage

func (*SelectorConfig) ProtoMessage()

func (*SelectorConfig) ProtoReflect

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

func (*SelectorConfig) Reset

func (x *SelectorConfig) Reset()

func (*SelectorConfig) String

func (x *SelectorConfig) String() string

func (*SelectorConfig) Validate

func (m *SelectorConfig) Validate() error

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

func (m *SelectorConfig) ValidateAll() error

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

type SelectorConfigMultiError

type SelectorConfigMultiError []error

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

func (SelectorConfigMultiError) AllErrors

func (m SelectorConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SelectorConfigMultiError) Error

func (m SelectorConfigMultiError) Error() string

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

type SelectorConfigValidationError

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

SelectorConfigValidationError is the validation error returned by SelectorConfig.Validate if the designated constraints aren't met.

func (SelectorConfigValidationError) Cause

Cause function returns cause value.

func (SelectorConfigValidationError) Error

Error satisfies the builtin error interface

func (SelectorConfigValidationError) ErrorName

func (e SelectorConfigValidationError) ErrorName() string

ErrorName returns error name.

func (SelectorConfigValidationError) Field

Field function returns field value.

func (SelectorConfigValidationError) Key

Key function returns key value.

func (SelectorConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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