wrr

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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