mdns

package
v0.0.0-...-9f791b1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceTag = "_photon"

ServiceTag 服务类型

Functions

This section is empty.

Types

type Notifee

type Notifee interface {
	HandlePeerFound(id string, addr *net.UDPAddr)
}

Notifee notify handler fro mdns

type Service

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

Service interface for mdns

func NewMdnsService

func NewMdnsService(ctx context.Context, port int, myid string, interval time.Duration) (Service, error)

NewMdnsService create mdns service

Jump to

Keyboard shortcuts

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