Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Debug controls the level of logging in module. By default the module is silent. // Set Debug to true to see module logs. Debug bool // ErrInvalidChannel nil channel passed for notification ErrInvalidChannel = errors.New("invalid channel") )
Functions ¶
Types ¶
type Entry ¶
type Entry struct { IPv4 net.IP IPv6 net.IP Name string Model string // contains filtered or unexported fields }
Entry contains a full record of a mDNS entry
Simplified mdns entry to show the record by IPv4
type Handler ¶
Handler provides a query interface that can be used to search for service providers using mDNS
func NewHandler ¶
NewHandler creates an IPv4 Multicast DNS handler for a given interface It will also attempt to create an IPv6 port if available.
func (*Handler) AddNotificationChannel ¶
AddNotificationChannel set the channel for notifications
func (*Handler) ListenAndServe ¶
ListenAndServe is the main loop to listen for MDNS packets.
Click to show internal directories.
Click to hide internal directories.