package protocol const ( DiscoverServersRequest = "discover_servers" DiscoverServersResult = "discovered_servers" ) // DiscoveredServer is one Pipelines DNS-SD advertisement on the serving LAN. // Endpoint is the LAN route; Addresses lists every route to the same machine. type DiscoveredServer struct { Name string `json:"name"` Endpoint string `json:"endpoint"` Auth string `json:"auth"` Version string `json:"version"` Addresses []DiscoveredAddress `json:"addresses"` } // DiscoveredAddress is one route: kind "lan", "tailscale" or "public". type DiscoveredAddress struct { Kind string `json:"kind"` Endpoint string `json:"endpoint"` }