discovery

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMultiMDNS

func InitMultiMDNS(peerhost host.Host, rendezvous string, logchan chan string) (chan peer.AddrInfo, error)

InitMultiMDNS initialize the MDNS service

Types

type DiscoveryNotifee

type DiscoveryNotifee struct {
	PeerHost host.Host
	PeerChan chan peer.AddrInfo
	LogChan  chan string
}

DiscoveryNotifee noti struct when discover a new peer

func (*DiscoveryNotifee) HandlePeerFound

func (n *DiscoveryNotifee) HandlePeerFound(peerInfo peer.AddrInfo)

HandlePeerFound interface to be called when new peer is found

Jump to

Keyboard shortcuts

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