Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceType ¶
type DeviceType struct { ID uint `json:"id"` Name string `json:"name"` InstallationManualURL string `json:"installation_manual_url"` InfoURL string `json:"info_url"` }
A DeviceType contains information about a group of devices with the same functionality.
func MakeDeviceType ¶
func MakeDeviceType(name, installationManualURL, infoURL string) DeviceType
Create a new DeviceType.
type DeviceTypeRepository ¶
type DeviceTypeRepository interface { Find(deviceType DeviceType) (DeviceType, error) GetAll() ([]DeviceType, error) Create(DeviceType) (DeviceType, error) Delete(DeviceType) error }
A DeviceTypeRepository can load, store and delete device types.
Click to show internal directories.
Click to hide internal directories.