Documentation
¶
Index ¶
Constants ¶
const ServiceType = "_zaparoo._tcp"
ServiceType is the DNS-SD service type for Zaparoo Core.
Variables ¶
This section is empty.
Functions ¶
func ResolveInstanceName ¶ added in v2.19.0
ResolveInstanceName returns the instance name this service advertises under ServiceType, for a host that has to publish the record itself because Core cannot run its own responder there. Priority: config value > hostname > fallback.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages mDNS service advertising for network discovery. It allows mobile apps to discover Zaparoo Core instances without manual IP configuration.
func (*Service) InstanceName ¶
InstanceName returns the resolved mDNS instance name. Returns empty string if Start() has not been called.
func (*Service) Start ¶
Start begins mDNS service advertising and keeps it in step with the machine's network interfaces. Registration failing right now is not an error: the watch loop retries for as long as the service runs, because a network that is not ready at boot usually becomes ready shortly after.