Versions in this module Expand all Collapse all v2 v2.2.0 Jul 27, 2022 Changes in this version + func Browse(ctx context.Context, service, domain string, entries chan<- *ServiceEntry, ...) error + func Lookup(ctx context.Context, instance, service, domain string, ...) error + type ClientOption func(*clientOpts) + func SelectIPTraffic(t IPType) ClientOption + func SelectIfaces(ifaces []net.Interface) ClientOption + type IPType uint8 + const IPv4 + const IPv4AndIPv6 + const IPv6 + type Server struct + func Register(instance, service, domain string, port int, text []string, ...) (*Server, error) + func RegisterProxy(instance, service, domain string, port int, host string, ips []string, ...) (*Server, error) + func (s *Server) SetText(text []string) + func (s *Server) Shutdown() + func (s *Server) TTL(ttl uint32) + type ServerOption func(*serverOpts) + func TTL(ttl uint32) ServerOption + type ServiceEntry struct + AddrIPv4 []net.IP + AddrIPv6 []net.IP + Expiry time.Time + HostName string + Port int + Text []string + type ServiceRecord struct + Domain string + Instance string + Service string + Subtypes []string + func (s *ServiceRecord) ServiceInstanceName() string + func (s *ServiceRecord) ServiceName() string + func (s *ServiceRecord) ServiceTypeName() string