Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ID int `gorm:"primarykey"` Class templates.Class Type string Details []ConfigDetail `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE"` }
func ConfigByID ¶
ConfigByID returns device by id from the database
func ConfigurationsByClass ¶
ConfigurationsByClass returns devices by class from the database
type ConfigDetail ¶
type ConfigurableDevice ¶
type ConfigurableDevice[T any] interface { Device[T] ID() int Update(map[string]any, T) error Delete() error }
func NewConfigurableDevice ¶
func NewConfigurableDevice[T any](config Config, instance T) ConfigurableDevice[T]
type Device ¶
func NewStaticDevice ¶
type Handler ¶
Click to show internal directories.
Click to hide internal directories.