Documentation ¶
Index ¶
Constants ¶
View Source
const WeightAttributeKey = "customize_weight"
Variables ¶
This section is empty.
Functions ¶
func NewErrPicker ¶
NewErrPicker returns a Picker that always returns err on Pick().
Types ¶
type McPickerBuilder ¶
type McPickerBuilder struct { }
func (*McPickerBuilder) Build ¶
func (pb *McPickerBuilder) Build(info PickerBuildInfo) balancer.Picker
type MrtPickerBuilder ¶
type MrtPickerBuilder struct { }
func (*MrtPickerBuilder) Build ¶
func (pb *MrtPickerBuilder) Build(info PickerBuildInfo) balancer.Picker
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 ¶
func (pb *RRPickerBuilder) Build(info PickerBuildInfo) balancer.Picker
type RWRRPickerBuilder ¶
type RWRRPickerBuilder struct{}
func (*RWRRPickerBuilder) Build ¶
func (pb *RWRRPickerBuilder) Build(info PickerBuildInfo) balancer.Picker
type SubConnInfo ¶
SubConnInfo contains information about a SubConn created by the base balancer.
type WRRPickerBuilder ¶
type WRRPickerBuilder struct{}
func (*WRRPickerBuilder) Build ¶
func (pb *WRRPickerBuilder) Build(info PickerBuildInfo) balancer.Picker
Click to show internal directories.
Click to hide internal directories.