package weightedroundrobin
import "google.golang.org/grpc/balancer/weightedroundrobin"
Package weightedroundrobin defines a weighted roundrobin balancer.
Index ¶
Constants ¶
const Name = "weighted_round_robin"
Name is the name of weighted_round_robin balancer.
Functions ¶
func SetAddrInfo ¶
SetAddrInfo returns a copy of addr in which the BalancerAttributes field is updated with addrInfo.
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
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.
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (AddrInfo) Equal ¶
Equal allows the values to be compared by Attributes.Equal.
Source Files ¶
weightedroundrobin.go
- Version
- v1.52.0-dev
- Published
- Nov 8, 2022
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 24 minutes ago –
Tools for package owners.