Versions in this module Expand all Collapse all v0 v0.1.1 Jul 25, 2019 Changes in this version + func Listen(ctx context.Context, entries chan<- *ServiceEntry, exit chan struct{}) error + func ListenContext(ctx context.Context, entries chan<- *ServiceEntry) error + func ListenExitChan(entries chan<- *ServiceEntry, exit chan struct{}) error + func Lookup(service string, entries chan<- *ServiceEntry) error + func Query(params *QueryParam) error + type Config struct + Iface *net.Interface + Zone Zone + type DNSSDService struct + MDNSService *MDNSService + func (s *DNSSDService) Records(q dns.Question) []dns.RR + 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 + 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 Zone interface + Records func(q dns.Question) []dns.RR