Documentation ¶
Overview ¶
Package node is a fundamental part of networking system. Each node has:
- one real network address (IP or any other transport protocol address)
- multiple abstract network IDs (either node's own or ones belonging to relayed nodes)
Contains structures to describe network entities in code.
Usage:
originAddress, err := node.NewAddress(address) if err != nil { ... } origin, err := node.NewOrigin(nil, originAddress) if err != nil { ... }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { // ID is a 20 byte unique identifier. ID id.ID // Address is IP and port. Address *Address }
Node is the over-the-wire representation of a node.
Click to show internal directories.
Click to hide internal directories.