discovery

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 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