Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultConfigFile is the filename of the configuration file DefaultConfigFile = "config" SwarmPort = "3700" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addresses ¶
type Addresses struct {
Swarm []string // addresses for the swarm to listen on
}
Addresses stores the (string) multiaddr addresses for the node.
type Config ¶
type Config struct { Identity Identity // local node's peer identity Addresses Addresses // local node's addresses Bootstrap []string DeviceName string ConnMgr ConnMgr // ReprovideInterval sets how often to reprovide records to the DHT ReprovideInterval time.Duration }
Config wraps configuration options for the Peer.
func ConfigInit ¶
Click to show internal directories.
Click to hide internal directories.