Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPeerDiscoverers ¶ added in v1.1.0
func NewPeerDiscoverers(args ArgsPeerDiscoverer) ([]p2p.PeerDiscoverer, error)
NewPeerDiscoverers generates an array of implementations of PeerDiscoverer by parsing the p2pConfig struct Errors if config is badly formatted
Types ¶
type ArgsPeerDiscoverer ¶
type ArgsPeerDiscoverer struct { Context context.Context Host discovery.ConnectableHost Sharder p2p.Sharder P2pConfig config.P2PConfig ConnectionsWatcher p2p.ConnectionsWatcher NetworkType p2p.NetworkType Logger p2p.Logger }
ArgsPeerDiscoverer is the DTO struct used in the NewPeerDiscoverer function
Click to show internal directories.
Click to hide internal directories.