Documentation ¶
Overview ¶
Package mdns manages and/or registers new bitbox bases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseDeviceInfo ¶
BaseDeviceInfo contains the IPv4s and Hostname of a discovered BitBox Base
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager listens for new bitboxbases and handles their (de)registration.
func NewManager ¶
func NewManager( onDetect func(), onRegister func(bitboxbase.Interface) error, onUnregister func(string), config *config.Config, bitboxBaseConfigDir string, ) *Manager
NewManager creates a new manager. onRegister is called when a bitboxbase has been inserted. onUnregister is called when the bitboxbase has been removed.
func (*Manager) GetDetectedBases ¶
GetDetectedBases returns bases detected by the manager with the mDNS scan
func (*Manager) RemoveBase ¶
RemoveBase allows external objects to delete a manager entry.
Click to show internal directories.
Click to hide internal directories.