Documentation ¶
Overview ¶
Package state contains structures related to a node's state as documented in the pastry paper.
This includes, the LeafSet, a more generalized Set, and the RoutingTable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Length int = 10
Functions ¶
This section is empty.
Types ¶
type LeafSet ¶
type LeafSet struct {
// contains filtered or unexported fields
}
LeafSet contains the sets of numerically closer and farther from the node.
func NewLeafSet ¶
func (LeafSet) IsInRange ¶
IsInRange returns whether an id is between the Min and Max IDs in the LeafSet.
type RoutingTable ¶
Click to show internal directories.
Click to hide internal directories.