Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hashring ¶
type Hashring struct { HashringSpec `json:",inline"` Endpoints []string `json:"endpoints"` }
Hashring is the config for the hashring
type HashringAlgorithm ¶
type HashringAlgorithm string
const ( AlgorithmHashmod HashringAlgorithm = "hashmod" AlgorithmKetama HashringAlgorithm = "ketama" DefaultHashringAlgorithm = AlgorithmKetama )
type HashringSpec ¶
type HashringSpec struct { // Name is the name of the hashring Name string `json:"hashring"` // Tenants is a list of tenants that should be included in the hashring Tenants []string `json:"tenants"` }
HashringSpec describes the hashring
Click to show internal directories.
Click to hide internal directories.