Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answerer ¶
Answerer is an mDNS answerer that answers questions about DNS-SD services, thus making a Bonjour server.
func (*Answerer) AddInstance ¶
AddInstance adds a service instance to the answerer.
It panics if i is invalid.
func (*Answerer) Answer ¶
func (an *Answerer) Answer( ctx context.Context, q *responder.Question, a *responder.Answer, ) error
Answer populates an answer to a single DNS question.
func (*Answerer) RemoveInstance ¶
func (an *Answerer) RemoveInstance( instance dnssd.InstanceName, service dnssd.ServiceType, domain names.FQDN, )
RemoveInstance removes a service instance from the handler.
Click to show internal directories.
Click to hide internal directories.