package
Version:
v0.0.0-...-71a7f5d
Opens a new window with list of versions in this module.
Published: May 10, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
HashFunc defines function to generate hash code
NodeMap stores nodes and you can pick node from NodeMap
NewNodeMap creates a new NodeMap
AddNode add the given nodes into consistent hash circle
IsEmpty returns if there is no node in NodeMap
PickNode gets the closest item in the hash to the provided key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.