Documentation
¶
Overview ¶
Package mdns publishes a `2papi.local` service via mDNS/Bonjour so the gateway resolves on the LAN as a real `.local` name without touching /etc/hosts. Pure Go (zeroconf) — works on macOS (Bonjour built-in), Linux (avahi not required), and Windows (best-effort). Publishing runs in the background.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher announces the gateway over mDNS. Call Close() before shutdown.
func NewPublisher ¶
NewPublisher starts mDNS advertising for hostname (without .local) on port. instance is a human-friendly name shown in browsers (Finder, Bonjour).