Documentation
¶
Overview ¶
Package mdns manages detects and/or registers new bitbox bases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector listens for new bitboxbases and creates a new bitboxBase when detected.
func NewDetector ¶
func NewDetector( onRegister func(bitboxbase.Interface) error, onUnregister func(string), config *config.Config, ) *Detector
NewDetector creates a new detector. onRegister is called when a bitboxbase has been inserted. onUnregister is called when the bitboxbase has been removed.
func (*Detector) RemoveBase ¶
RemoveBase allows external objects to delete a detector entry.
Click to show internal directories.
Click to hide internal directories.