balancer

package
v0.0.0-...-b937326 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NameSmoothWeightRoundRobin ...
	NameSmoothWeightRoundRobin = "swr"
)

Variables

This section is empty.

Functions

func NewBalancerBuilderV2

func NewBalancerBuilderV2(name string, pb PickerBuilder, config base.Config) balancer.Builder

NewBalancerBuilderV2 returns a base balancer builder configured by the provided config.

func NewErrPickerV2

func NewErrPickerV2(err error) balancer.V2Picker

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.V2Picker
}

PickerBuilder ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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