Versions in this module Expand all Collapse all v0 v0.0.5 Aug 7, 2023 v0.0.4 Oct 23, 2021 v0.0.3 Sep 11, 2021 v0.0.2 Jul 4, 2021 v0.0.1 Jul 4, 2021 Changes in this version + func Listen(entries chan<- *ServiceEntry, exit chan struct{}) error + func Lookup(service string, entries chan<- *ServiceEntry) error + func Query(params *QueryParam) error + type Config struct + GetMachineIP GetMachineIP + Iface *net.Interface + LocalhostChecking bool + Port int + Zone Zone + type DNSSDService struct + MDNSService *MDNSService + func (s *DNSSDService) Records(q dns.Question) []dns.RR + type GetMachineIP func() net.IP + type MDNSService struct + Domain string + HostName string + IPs []net.IP + Instance string + Port int + Service string + TTL uint32 + TXT []string + func NewMDNSService(instance, service, domain, hostName string, port int, ips []net.IP, ...) (*MDNSService, error) + func (m *MDNSService) Records(q dns.Question) []dns.RR + type QueryParam struct + Context context.Context + Domain string + Entries chan<- *ServiceEntry + Interface *net.Interface + Service string + Timeout time.Duration + Type uint16 + WantUnicastResponse bool + func DefaultParams(service string) *QueryParam + type Server struct + func NewServer(config *Config) (*Server, error) + func (s *Server) SendMulticast(msg *dns.Msg) error + func (s *Server) Shutdown() error + type ServiceEntry struct + Addr net.IP + AddrV4 net.IP + AddrV6 net.IP + Host string + Info string + InfoFields []string + Name string + Port int + TTL int + Type uint16 + type Zone interface + Records func(q dns.Question) []dns.RR