Documentation ¶ Index ¶ Constants func Register(router route.Router) func Set(router route.Router) type Builder func (b *Builder) Build(info base.PickerBuildInfo) balancer.Picker type Picker func (p *Picker) Pick(info balancer.PickInfo) (balancer.PickResult, error) Constants ¶ View Source const Name = "wrr" Variables ¶ This section is empty. Functions ¶ func Register ¶ func Register(router route.Router) Register register balancer builder if nil. func Set ¶ func Set(router route.Router) Set overwrite any balancer builder. Types ¶ type Builder ¶ type Builder struct { // contains filtered or unexported fields } func (*Builder) Build ¶ func (b *Builder) Build(info base.PickerBuildInfo) balancer.Picker type Picker ¶ type Picker struct { // contains filtered or unexported fields } func (*Picker) Pick ¶ func (p *Picker) Pick(info balancer.PickInfo) (balancer.PickResult, error) Source Files ¶ View all Source files wrr.go Click to show internal directories. Click to hide internal directories.