package
Version:
v0.0.0-...-e858c94
Opens a new window with list of versions in this module.
Published: Oct 11, 2022
License: GPL-3.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.