Versions in this module Expand all Collapse all v0 v0.0.2 May 4, 2024 Changes in this version + func Lookup(service string, entries chan<- *ServiceEntry) error + func Query(params *QueryParam) error + func QueryContext(ctx context.Context, params *QueryParam) error + type Config struct + Iface *net.Interface + LogEmptyResponses bool + Zones MDNSServices + type MDNSService struct + Domain string + HostName string + IPs []net.IP + Instance string + Port int + Service string + 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 MDNSServices []*MDNSService + type QueryParam struct + DisableIPv4 bool + DisableIPv6 bool + 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) Shutdown() error + type ServiceEntry struct + Addr net.IP + AddrV4 net.IP + AddrV6 net.IP + AddrV6IPAddr *net.IPAddr + Host string + Info string + InfoFields []string + Name string + Port int + type Zone interface + Records func(q dns.Question) []dns.RR