discovery

package
v5.0.19+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceTag = "_ipfs-discovery._udp"

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifee

type Notifee interface {
	HandlePeerFound(pstore.PeerInfo)
}

type Service

type Service interface {
	io.Closer
	RegisterNotifee(Notifee)
	UnregisterNotifee(Notifee)
}

func NewMdnsService

func NewMdnsService(ctx context.Context, peerhost host.Host, interval time.Duration, serviceTag string) (Service, error)

Jump to

Keyboard shortcuts

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