Versions in this module Expand all Collapse all v0 v0.3.0 Oct 11, 2026 Changes in this version + type Domains struct + Browse []string + DefaultBrowse []string + DefaultRegister []string + Legacy []string + Register []string + func BrowseDomains(ctx context.Context, opts Options) (Domains, error) type Options + QU bool + StrictSource bool + type Reflector struct + func Reflect(ctx context.Context, opts Options) (*Reflector, error) + func (r *Reflector) Close() error + func (r *Reflector) Reflected() int64 v0.2.0 Oct 11, 2026 Changes in this version + func BrowseServiceTypes(ctx context.Context, opts Options) ([]string, error) type Announcer + func (a *Announcer) Err() error + func (a *Announcer) Service() Service + type ConflictEvent struct + Err error + Kind ConflictKind + Previous Service + Service Service + type ConflictKind int + const ConflictKept + const ConflictRenamed + const ConflictSeen + const ConflictWithdrawn + func (k ConflictKind) String() string type Options + OnConflict func(ConflictEvent) type Watcher + func (w *Watcher) Reconfirm(service, instance string) bool v0.1.1 Oct 11, 2026 v0.1.0 Oct 11, 2026 Changes in this version + const DefaultPort + const DefaultWait + const MaxRenames + var ErrConflict = errors.New("mdns: name already in use on the link") + var MaxQueryInterval = time.Hour + func BrowseTypes(ctx context.Context, services []string, opts Options) (map[string][]Service, error) + func TestInterface(port int) (*net.Interface, error) + type Announcer struct + func Announce(ctx context.Context, s Service, service string, opts Options) (*Announcer, error) + func (a *Announcer) Close() error + func (a *Announcer) UpdateTXT(txt map[string]string) error + type BrowseMode int + const BrowseBoth + const BrowseMulticast + const BrowseOneShot + type Event struct + Kind EventKind + Service Service + Type string + type EventKind int + const Added + const Removed + const Updated + func (k EventKind) String() string + type Options struct + Interfaces []net.Interface + Loopback bool + Mode BrowseMode + Port int + Rename func(s Service, attempt int) Service + Wait time.Duration + type Service struct + Host string + IPs []net.IP + Instance string + Port int + Subtypes []string + TXT map[string]string + func Browse(ctx context.Context, service string, opts Options) ([]Service, error) + func RenameInstance(s Service, attempt int) Service + func (s Service) Addr() string + type Watcher struct + func Watch(ctx context.Context, services []string, opts Options, fn func(Event)) (*Watcher, error) + func (w *Watcher) Close() error + func (w *Watcher) Done() <-chan struct{} + func (w *Watcher) Services(service string) []Service + func (w *Watcher) Settled() <-chan struct{}