discovery

package
v0.0.0-...-403c8b4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Provider types
	OtherType = iota
	MinerType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovered

type Discovered struct {
	AddrInfo peer.AddrInfo
	Type     int
}

Discovered holds information about a provider that is discovered

type Discoverer

type Discoverer interface {
	Discover(ctx context.Context, peerID peer.ID, discoveryAddr string) (*Discovered, error)
}

Discoverer is the interface that supplies functionality to discover providers

Jump to

Keyboard shortcuts

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