Name is the name of the ring_hash balancer.
const Name = "ring_hash_experimental"
func GetRequestHashForTesting(ctx context.Context) uint64
GetRequestHashForTesting returns the request hash in the context; to be used for testing only.
func SetRequestHash(ctx context.Context, requestHash uint64) context.Context
SetRequestHash adds the request hash to the context for use in Ring Hash Load Balancing.
LBConfig is the balancer config for ring_hash balancer.
type LBConfig struct { serviceconfig.LoadBalancingConfig `json:"-"` MinRingSize uint64 `json:"minRingSize,omitempty"` MaxRingSize uint64 `json:"maxRingSize,omitempty"` }