Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Empty = ID{}
Empty returns an empty ID
Functions ¶
This section is empty.
Types ¶
type NodeID ¶
type NodeID [20]byte
NodeID represents a node identifier
func GenerateTestNodeID ¶
func GenerateTestNodeID() NodeID
GenerateTestNodeID generates a random NodeID for testing
func NodeIDFromString ¶
NodeIDFromString creates a NodeID from a string
type ShortID ¶
type ShortID [20]byte
ShortID represents a 20-byte identifier
func ShortFromString ¶
ShortFromString creates a ShortID from a string
Click to show internal directories.
Click to hide internal directories.