Name is the name of the weighted round robin balancer.
const Name = "weighted_round_robin"
func SetAddrInfo(addr resolver.Address, addrInfo AddrInfo) resolver.Address
SetAddrInfo returns a copy of addr in which the BalancerAttributes field is updated with addrInfo.
AddrInfo will be stored in the BalancerAttributes field of Address in order to use weighted roundrobin balancer.
type AddrInfo struct { Weight uint32 }
func GetAddrInfo(addr resolver.Address) AddrInfo
GetAddrInfo returns the AddrInfo stored in the BalancerAttributes field of addr.
func (a AddrInfo) Equal(o any) bool
Equal allows the values to be compared by Attributes.Equal.
func (a AddrInfo) String() string
Name | Synopsis |
---|---|
.. |