Documentation ¶
Overview ¶
Package weightedroundrobin provides an implementation of the weighted round robin LB policy, as defined in gRFC A58.
Experimental ¶
Notice: This package is EXPERIMENTAL and may be changed or removed in a later release.
Index ¶
Constants ¶
View Source
const Name = "weighted_round_robin_experimental"
Name is the name of the weighted round robin balancer.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddrInfo ¶
type AddrInfo struct {
Weight uint32
}
AddrInfo will be stored in the BalancerAttributes field of Address in order to use weighted roundrobin balancer.
func GetAddrInfo ¶
GetAddrInfo returns the AddrInfo stored in the BalancerAttributes field of addr.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.