Documentation ¶
Overview ¶
Package dhtring - provides operations like find a closest node, add new and remove for a Distributed Hash Table Ring data structure
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
Ring is a struct to store the DHT Ring to store 32-bytes hex
func (*Ring) GetClosest ¶
GetClosest gets the closest hexes close to the given hex
func (*Ring) GetWithinRange ¶
GetWithinRange gets all entries within a range
Click to show internal directories.
Click to hide internal directories.