Documentation ¶
Index ¶
- func Add(balancer balance2.Balancer)
- func NewETCDBuilder() resolver.Builder
- func NewWith(type_, subType_ string, scales map[string]int) (b balance2.Balancer)
- func PickPeer(method string, peers []*balance2.ServicePeer) (picked *balance2.ServicePeer, err error)
- func RegisterResolver(keyPrefix string)
- func UpdateScales(scales map[string]int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewETCDBuilder ¶
func PickPeer ¶
func PickPeer(method string, peers []*balance2.ServicePeer) (picked *balance2.ServicePeer, err error)
func RegisterResolver ¶
func RegisterResolver(keyPrefix string)
func UpdateScales ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.