Documentation ¶
Index ¶
- type Storage
- func (s *Storage) AddDevice(name string, desc string, devType string)
- func (s *Storage) Device(name string) devices.IDevice
- func (s *Storage) DeviceByDescription(desc string) (devices.IDevice, error)
- func (s *Storage) DeviceByID(id int) (devices.IDevice, error)
- func (s *Storage) Devices() []devices.IDevice
- func (s *Storage) DevicesByType(devType string) []devices.IDevice
- func (s *Storage) RemoveByID(id int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage All devices map
func (*Storage) DeviceByDescription ¶
DeviceByDescription Get device by description
func (*Storage) DevicesByType ¶
DevicesByType Get all devices by type
func (*Storage) RemoveByID ¶
Click to show internal directories.
Click to hide internal directories.