Documentation ¶
Index ¶
- type Device
- type DeviceConfig
- func (c *DeviceConfig) Add(d Device)
- func (c *DeviceConfig) Delete(uid string)
- func (c *DeviceConfig) Edit(uid string, d Device) error
- func (c *DeviceConfig) Get(uid string) (Device, error)
- func (c *DeviceConfig) GetWithReqID(rid string) (Device, error)
- func (c *DeviceConfig) List() []Device
- func (c *DeviceConfig) LoadConfig() error
- func (c *DeviceConfig) SaveConfig() error
- type DeviceConfigFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type DeviceConfig ¶
type DeviceConfig struct { Mut sync.RWMutex File DeviceConfigFile }
func (*DeviceConfig) Add ¶
func (c *DeviceConfig) Add(d Device)
func (*DeviceConfig) Delete ¶
func (c *DeviceConfig) Delete(uid string)
func (*DeviceConfig) GetWithReqID ¶
func (c *DeviceConfig) GetWithReqID(rid string) (Device, error)
func (*DeviceConfig) List ¶
func (c *DeviceConfig) List() []Device
func (*DeviceConfig) LoadConfig ¶
func (c *DeviceConfig) LoadConfig() error
func (*DeviceConfig) SaveConfig ¶
func (c *DeviceConfig) SaveConfig() error
type DeviceConfigFile ¶
type DeviceConfigFile struct { Header config.FileHeader Devices []Device }
Click to show internal directories.
Click to hide internal directories.