package
Version:
v0.0.0-...-7a4b066
Opens a new window with list of versions in this module.
Published: Aug 3, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package dhtring - provides operations like find a closest node, add new and remove for a Distributed Hash Table Ring data structure
Ring is a struct to store the DHT Ring to store 32-bytes hex
CreateRing creates a new ring data structure
GetClosest gets the closest hexes close to the given hex
Insert inserts a hex string into the ring
Remove inserts a given hex string out of the ring
Size gets the size of the ring
Source Files
¶
Click to show internal directories.
Click to hide internal directories.