Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BalancerName is the name of consistent-hashing balancer. BalancerName = "consistent-hashing" // BalancerServiceConfig is a service config that sets the default balancer // to the consistent-hashing balancer. BalancerServiceConfig = `{"loadBalancingPolicy":"consistent-hashing"}` // ContextKey is the key for the grpc request's context.Context which points to // the key to hash for the request. ContextKey = ContextKeyType("consistent-hashing-key") )
Variables ¶
This section is empty.
Functions ¶
func NewConsistentHashingBuilder ¶
NewConsistentHashingBuilder creates a new consistent-hashing balancer builder.
Types ¶
type ContextKeyType ¶
type ContextKeyType string
Click to show internal directories.
Click to hide internal directories.