Versions in this module Expand all Collapse all v0 v0.1.0 May 8, 2018 Changes in this version + const Version + func IpBetween(from net.IP, to net.IP, test net.IP) (bool, error) + type Node struct + ID NodeID + IP net.IP + TCP uint16 + UDP uint16 + func MustParseNode(rawurl string) *Node + func NewNode(id NodeID, ip net.IP, udpPort, tcpPort uint16) *Node + func ParseNode(rawurl string) (*Node, error) + func (n *Node) Incomplete() bool + func (n *Node) String() string + type NodeID [nodeIDBits / 8]byte + func HexID(in string) (NodeID, error) + func MustHexID(in string) NodeID + func PubkeyID(pub *ecdsa.PublicKey) NodeID + func (id NodeID) Pubkey() (*ecdsa.PublicKey, error) + func (n NodeID) GoString() string + func (n NodeID) String() string + type Table struct + func ListenUDP(priv *ecdsa.PrivateKey, laddr string, natm nat.Interface, nodeDBPath string) (*Table, error) + func (tab *Table) Close() + func (tab *Table) Lookup(id NodeID) []*Node + func (tab *Table) ReadRandomNodes(buf []*Node) (n int) + func (tab *Table) Resolve(id NodeID) *Node + func (tab *Table) Self() *Node + func (tab *Table) SetFallbackNodes(nodes []*Node) error