Documentation ¶
Index ¶
Constants ¶
View Source
const (
// NameSmoothWeightRoundRobin ...
NameSmoothWeightRoundRobin = "swr"
)
NameSmoothWeightRoundRobin ...
Variables ¶
This section is empty.
Functions ¶
func NewBalancerBuilderV2 ¶
NewBalancerBuilderV2 returns a base balancer builder configured by the provided config.
func NewErrPickerV2 ¶
NewErrPickerV2 returns a V2Picker that always returns err on Pick().
Types ¶
type PickerBuildInfo ¶
type PickerBuildInfo struct { // ReadySCs is a map from all ready SubConns to the Addresses used to // create them. ReadySCs map[balancer.SubConn]base.SubConnInfo *attributes.Attributes }
PickerBuildInfo ...
type PickerBuilder ¶
type PickerBuilder interface {
Build(info PickerBuildInfo) balancer.Picker
}
PickerBuilder ...
Click to show internal directories.
Click to hide internal directories.