mdns

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 12 Imported by: 115

Documentation

Index

Constants

View Source
const (
	ServiceName = "_p2p._udp"
)

Variables

This section is empty.

Functions

func NewMdnsService

func NewMdnsService(host host.Host, serviceName string) *mdnsService

Types

type Notifee

type Notifee interface {
	HandlePeerFound(peer.AddrInfo)
}

type Service

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

Jump to

Keyboard shortcuts

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