Documentation
¶
Overview ¶
Package discovery announces a Matinee server on the local network with DNS-SD over multicast DNS, so the apps can list it without anyone typing an address.
Index ¶
Constants ¶
const Service = "_matinee._tcp"
Service is the DNS-SD service type the apps browse for.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Announcement ¶
type Announcement struct {
Name string // shown in the list, such as "Matinee"
Port int // where this host serves Matinee
URL string // optional: the server's address away from home
Version string
UUID string // the server's own id (api.ServerUUID)
// Home means this host's IP and Port reach Matinee directly from the home
// network, so devices there can use it without signing in. Otherwise
// apps connect to URL.
Home bool
}
Announcement is what the apps see in their list of servers nearby.
func (Announcement) TXT ¶
func (a Announcement) TXT() []string
TXT is the record the apps read: who's answering, and where to connect.