picker

package
v1.58.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const WeightAttributeKey = "customize_weight"

Variables

This section is empty.

Functions

func NewErrPicker

func NewErrPicker(err error) balancer.Picker

NewErrPicker returns a Picker that always returns err on Pick().

Types

type McPickerBuilder

type McPickerBuilder struct {
}

func (*McPickerBuilder) Build

type MrtPickerBuilder

type MrtPickerBuilder struct {
}

func (*MrtPickerBuilder) Build

type PickerBuildInfo

type PickerBuildInfo struct {
	// ReadySCs is a map from all ready SubConns to the Addresses used to
	// create them.
	ReadySCs map[balancer.SubConn]SubConnInfo
}

PickerBuildInfo contains information needed by the picker builder to construct a picker.

type PickerBuilder

type PickerBuilder interface {
	// Build returns a picker that will be used by gRPC to pick a SubConn.
	Build(info PickerBuildInfo) balancer.Picker
}

PickerBuilder creates balancer.Picker.

type RRPickerBuilder

type RRPickerBuilder struct {
}

func (*RRPickerBuilder) Build

type RWRRPickerBuilder

type RWRRPickerBuilder struct{}

func (*RWRRPickerBuilder) Build

type SubConnInfo

type SubConnInfo struct {
	Address resolver.Address // the address used to create this SubConn
}

SubConnInfo contains information about a SubConn created by the base balancer.

type WRRPickerBuilder

type WRRPickerBuilder struct{}

func (*WRRPickerBuilder) Build

Jump to

Keyboard shortcuts

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