Documentation ¶
Overview ¶
Package weightedroundrobin defines a weighted roundrobin balancer.
Index ¶
Constants ¶
View Source
const Name = "weighted_round_robin"
Name is the name of weighted_round_robin balancer.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddrInfo ¶
type AddrInfo struct {
Weight uint32
}
AddrInfo will be stored inside Address metadata in order to use weighted roundrobin balancer.
func GetAddrInfo ¶ added in v1.30.0
GetAddrInfo returns the AddrInfo stored in the Attributes fields of addr.
Experimental ¶
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
Click to show internal directories.
Click to hide internal directories.