factory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPeerDiscoverer

func NewPeerDiscoverer(args ArgsPeerDiscoverer) (p2p.PeerDiscoverer, error)

NewPeerDiscoverer generates an implementation 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

Jump to

Keyboard shortcuts

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