Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSSDEventMessage ¶
type DNSSDEventMessage struct { ServiceInfo DNSSDServiceInfo `json:"service_info"` EventType EventType `json:"event_type"` }
func (DNSSDEventMessage) MarshalJSON ¶
func (e DNSSDEventMessage) MarshalJSON() ([]byte, error)
type DNSSDInfo ¶
type DNSSDInfo struct { ApiVersion json.Number `json:"api_version"` Services []string `json:"services"` ErrorStatus node.NodeErrorStatus `json:"error_status"` }
type DNSSDServiceInfo ¶
type DNSSDServiceInfo struct { // DNS label pair according to rfc6763. ServiceName string `json:"type,omitempty"` Domain string `json:"domain,omitempty"` Priority json.Number `json:"priority,omitempty"` Weight json.Number `json:"weight,omitempty"` Ttl json.Number `json:"ttl,omitempty"` Port uint16 `json:"port,omitempty"` Hostname string `json:"hostname,omitempty"` Name string `json:"name,omitempty"` Addresses []net.IP `json:"addresses,omitempty"` TxtRecord any `json:"txt_record,omitempty"` }
DnssdServiceInfo - https://www.rfc-editor.org/rfc/rfc2782
func (DNSSDServiceInfo) MarshalJSON ¶
func (m DNSSDServiceInfo) MarshalJSON() ([]byte, error)
func (*DNSSDServiceInfo) UnmarshalJSON ¶
func (m *DNSSDServiceInfo) UnmarshalJSON(data []byte) error
type DNSSDTxtRecordHttps ¶
type DNSSDTxtRecordHttps struct { Format string `json:"format,omitempty"` ApiVersion json.Number `json:"api_version,omitempty"` ApplicationName string `json:"application_name,omitempty"` ElementName string `json:"element_name,omitempty"` ProductName string `json:"product_name,omitempty"` ErrorStatus node.NodeErrorStatus `json:"error_status,omitempty"` }
func (DNSSDTxtRecordHttps) String ¶
func (r DNSSDTxtRecordHttps) String() DNSSDTxtRecord
Click to show internal directories.
Click to hide internal directories.