Documentation
¶
Overview ¶
Package dnssdtest is a fake Avahi on a private bus: the services a test announces are reported to every browser of their type, once per address, on the interface and protocol the address names, and resolve to what the test set; the browsers made and freed are counted.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Avahi ¶
type Avahi struct {
// Bus is the private bus the fake owns Avahi's name on.
Bus *dbustest.Bus
// Created and Freed count the browsers made and freed.
Created, Freed dbustest.Var[int]
// contains filtered or unexported fields
}
Avahi is the fake.
func (*Avahi) Announce ¶
Announce adds a service at one address, reporting it to the browsers of its type; a service announced at several addresses is one per interface and protocol, as Avahi's are.
func (*Avahi) Browsing ¶ added in v0.3.26
func (a *Avahi) Browsing(typ string) []dbus.ObjectPath
Browsing are the browsers of typ.