Versions in this module Expand all Collapse all v3 v3.7.1 Feb 23, 2022 v3.7.0 Oct 11, 2021 v3.6.0 Aug 12, 2021 v3.5.2 Jul 6, 2021 v3.5.1 Apr 16, 2021 v3.5.0 Jan 25, 2021 v3.0.1 Jan 20, 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