Versions in this module Expand all Collapse all v1 v1.5.99 Aug 25, 2017 v1.5.97 Apr 24, 2017 Changes in this version + const Version + func S256() *secp256k1.BitCurve + type Network struct + func ListenUDP(priv *ecdsa.PrivateKey, laddr string, natm nat.Interface, nodeDBPath string, ...) (*Network, error) + func (net *Network) Close() + func (net *Network) Lookup(targetID NodeID) []*Node + func (net *Network) ReadRandomNodes(buf []*Node) (n int) + func (net *Network) RegisterTopic(topic Topic, stop <-chan struct{}) + func (net *Network) Resolve(targetID NodeID) *Node + func (net *Network) SearchTopic(topic Topic, setPeriod <-chan time.Duration, found chan<- *Node, ...) + func (net *Network) Self() *Node + func (net *Network) SetFallbackNodes(nodes []*Node) 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 + type Topic string