Documentation ¶
Overview ¶
Package swarm helps a node in the swarm keep track of all the nodes that is connected to it it . it periodically checks to make sure nodes are alive it also helps with message broadcast process
Index ¶
Constants ¶
View Source
const ( // DefaultRetryDelay ... DefaultRetryDelay = 10 * time.Second // DefaultMinPeers ... DefaultMinPeers = 1 // DefaultMaxPeers ... DefaultMaxPeers = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
Peer is used by swarm to encode/decode messages to peers
Click to show internal directories.
Click to hide internal directories.