Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoveryTypeToString ¶
func DiscoveryTypeToString(t models.DiscoveryType) string
func StringToDiscoveryType ¶
func StringToDiscoveryType(s string) models.DiscoveryType
Types ¶
type CSV ¶
type CSV struct {
// contains filtered or unexported fields
}
func NewCSVPeerDiscoverer ¶
func (*CSV) Type ¶
func (c *CSV) Type() models.DiscoveryType
type Discoverer ¶
type Discoverer interface {
// Run starts the peer discovery process or get the nodes from the file
Run() (chan *models.ENR, error)
// Type returns that
Type() models.DiscoveryType
// Close the peer discovery
Close()
}
type Discv4 ¶
type Discv4 struct {
// contains filtered or unexported fields
}
func (*Discv4) Type ¶
func (c *Discv4) Type() models.DiscoveryType
type PeerDiscovery ¶
type PeerDiscovery struct {
// contains filtered or unexported fields
}
Main peer discovery service that identifies new peers in the network
func NewPeerDiscovery ¶
func NewPeerDiscovery(ctx context.Context, discv Discoverer, database *db.PostgresDBService) (*PeerDiscovery, error)
func (*PeerDiscovery) Close ¶
func (d *PeerDiscovery) Close()
func (*PeerDiscovery) Run ¶
func (d *PeerDiscovery) Run() error
Click to show internal directories.
Click to hide internal directories.