shared

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockchainInfo

func BlockchainInfo(pipe definitions.Pipe) *core_types.BlockchainInfo

func ClientVersion

func ClientVersion(pipe definitions.Pipe) string

Get the client version

func Listeners

func Listeners(pipe definitions.Pipe) []string

Is the network currently listening for connections.

func Listening

func Listening(pipe definitions.Pipe) bool

Is the network currently listening for connections.

func Moniker

func Moniker(pipe definitions.Pipe) string

Get the moniker

func Peer

func Peer(pipe definitions.Pipe, address string) *consensus_types.Peer

Types

type NetworkInfo

type NetworkInfo struct {
	ClientVersion string                  `json:"client_version"`
	Moniker       string                  `json:"moniker"`
	Listening     bool                    `json:"listening"`
	Listeners     []string                `json:"listeners"`
	Peers         []*consensus_types.Peer `json:"peers"`
}

NetworkInfo

func NetInfo

func NetInfo(pipe definitions.Pipe) *NetworkInfo

Get the complete pipe info.

Jump to

Keyboard shortcuts

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