peermonitor

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientGeth   = "Geth"
	ClientParity = "Parity"
)
View Source
const (
	ChainNetworkMainnet = "mainnet"
	ChainNetworkRopsten = "ropsten"
	ChainNetworkRinkeby = "rinkeby"
)

Variables

This section is empty.

Functions

func GetEthNodesFetcher

func GetEthNodesFetcher(network string) fetchFn

func GetGistFetcher

func GetGistFetcher(network string) fetchFn

Types

type PeerMonitor

type PeerMonitor struct {
	// contains filtered or unexported fields
}

func NewPeerMonitor

func NewPeerMonitor(ethURL string, minPeerCount, maxPeerCount int, network string) *PeerMonitor

func (*PeerMonitor) Run

func (m *PeerMonitor) Run(monitorDuration time.Duration) error

func (*PeerMonitor) RunOnce

func (m *PeerMonitor) RunOnce() error

func (*PeerMonitor) Stop

func (m *PeerMonitor) Stop()

Jump to

Keyboard shortcuts

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