Documentation ¶
Overview ¶
Package peer maintains the peer related information such as the set of known peers and their status.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct {
Host string
}
Peer represents information about a Node in the network.
type PeerSet ¶
type PeerSet struct {
// contains filtered or unexported fields
}
PeerSet represents the data representation to maintain a set of known peers.
func NewPeerSet ¶
func NewPeerSet() *PeerSet
NewPeerSet constructs a new info set to manage node peer information.
type PeerStatus ¶
type PeerStatus struct { LatestBlockHash string `json:"latest_block_hash"` LatestBlockNumber uint64 `json:"latest_block_number"` KnownPeers []Peer `json:"known_peers"` }
PeerStatus represents information about the status of any given peer.
Click to show internal directories.
Click to hide internal directories.