package
Version:
v2.6.2
Opens a new window with list of versions in this module.
Published: May 19, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package consistenthash provides an implementation of a ring hash.
type KeyOwner struct {
Key int
Peers []string
}
Adds some keys to the hash.
Gets the set of hosts owning the keyring space closest to the provided key.
Returns true if there are no hosts available.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.