mdns

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverServices

func DiscoverServices(timeout time.Duration, serviceName string, onDiscover func(entry *zeroconf.ServiceEntry, stop context.CancelFunc))

Types

type DeviceWithHost

type DeviceWithHost struct {
	ServiceEntry *zeroconf.ServiceEntry
	Label        string
	Host         Host
}

func (DeviceWithHost) String

func (d DeviceWithHost) String() string

type Host

type Host struct {
	Addr net.IP
	Port int
}

func (*Host) String

func (h *Host) String() string

Jump to

Keyboard shortcuts

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