result

package
v0.73.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	Address string `json:"address"`
	Port    string `json:"port"`
}

Peer represents the peer.

type Peers

type Peers struct {
	Unconnected []Peer `json:"unconnected"`
	Connected   []Peer `json:"connected"`
	Bad         []Peer `json:"bad"`
}

Peers payload for outputting peers in `getpeers` RPC call.

func NewPeers

func NewPeers() Peers

NewPeers creates a new Peers struct.

func (*Peers) AddPeer

func (p *Peers) AddPeer(peerType string, addr string)

AddPeer adds a peer to the given peer type slice.

type Version

type Version struct {
	Port      uint16 `json:"port"`
	Nonce     uint32 `json:"nonce"`
	UserAgent string `json:"useragent"`
}

Version model used for reporting server version info.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL