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) RunOnce ¶
func (m *PeerMonitor) RunOnce() error
func (*PeerMonitor) Stop ¶
func (m *PeerMonitor) Stop()
Click to show internal directories.
Click to hide internal directories.