discovery

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModuleName = "DISC"
)

Functions

This section is empty.

Types

type BootNodeListString

type BootNodeListString struct {
	BootNodes []string `json:"bootNodes"`
}

type Discovery

type Discovery struct {
	DiscService PeerDiscovery
	PeerStore   *db.PeerStore
	IpLocator   *apis.PeerLocalizer
	// contains filtered or unexported fields
}

func NewDiscovery

func NewDiscovery(ctx context.Context, discServ PeerDiscovery, db *db.PeerStore, ipLoc *apis.PeerLocalizer) *Discovery

NewDiscovery

func (*Discovery) Start

func (d *Discovery) Start()

Start

type PeerDiscovery added in v1.1.0

type PeerDiscovery interface {
	Start()
	Next() bool
	Peer() (models.Peer, bool)
}

Directories

Path Synopsis
Copyright © 2021 Miga Labs
Copyright © 2021 Miga Labs

Jump to

Keyboard shortcuts

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