package
Version:
v0.73.0
Opens a new window with list of versions in this module.
Published: Feb 19, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Peer struct {
Address string `json:"address"`
Port string `json:"port"`
}
Peer represents the peer.
type Peers struct {
Unconnected []Peer `json:"unconnected"`
Connected []Peer `json:"connected"`
Bad []Peer `json:"bad"`
}
Peers payload for outputting peers in `getpeers` RPC call.
NewPeers creates a new Peers struct.
AddPeer adds a peer to the given peer type slice.
type Version struct {
Port uint16 `json:"port"`
Nonce uint32 `json:"nonce"`
UserAgent string `json:"useragent"`
}
Version model used for reporting server version
info.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.