Versions in this module Expand all Collapse all v3 v3.0.0 Nov 30, 2026 Changes in this version + const WSAEADDRNOTAVAIL + const WSAEINVAL + const WSAENETDOWN + func Browse(ctx context.Context, service, domain string, ...) error + func Lookup(ctx context.Context, instance, service, domain string, ...) error + func NewConnectionFactory() api.ConnectionFactory + func NewInterfaceProvider() api.InterfaceProvider + type Client struct + func NewClient(opts ...ClientOption) (*Client, error) + type ClientOption func(*clientOpts) + func SelectIPTraffic(t IPType) ClientOption + func SelectIfaces(ifaces []net.Interface) ClientOption + func WithClientConnFactory(factory api.ConnectionFactory) ClientOption + func WithClientInterfaceProvider(provider api.InterfaceProvider) ClientOption + type IPType uint8 + const IPv4 + const IPv4AndIPv6 + const IPv6 + type InterfaceManager struct + func NewInterfaceManager(initial []net.Interface, requested []string) *InterfaceManager + func (m *InterfaceManager) Activate(iface net.Interface) + func (m *InterfaceManager) ActiveIndices() []int + func (m *InterfaceManager) GetActiveInterfaces() []net.Interface + func (m *InterfaceManager) MarkFailed(ifIndex int, err error) bool + func (m *InterfaceManager) SetBackoff(ifName string) + func (m *InterfaceManager) Sync(current []net.Interface) []net.Interface + 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() + type ServerOption func(*serverOpts) + func TTL(ttl uint32) ServerOption + func WithServerConnFactory(factory api.ConnectionFactory) ServerOption + func WithServerInterfaceProvider(provider api.InterfaceProvider) 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