devicemanager

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceManager

type DeviceManager struct {
	Devices        map[string]*device.Device
	DevicesUpdated chan struct{}
	// contains filtered or unexported fields
}

func NewDeviceManager

func NewDeviceManager(cfg *config.Config) *DeviceManager

func (*DeviceManager) AddDevice

func (dm *DeviceManager) AddDevice(device *device.Device)

func (*DeviceManager) GetDevice

func (dm *DeviceManager) GetDevice(id string) *device.Device

func (*DeviceManager) Load

func (dm *DeviceManager) Load() error

func (*DeviceManager) RemoveDevice

func (dm *DeviceManager) RemoveDevice(device *device.Device)

func (*DeviceManager) Save

func (dm *DeviceManager) Save() error

func (*DeviceManager) UpdateDevice

func (dm *DeviceManager) UpdateDevice(device *device.Device)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL