Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { gorm.Model DeviceID string `gorm:"unique"` Latitude float64 Longitude float64 Value string DeviceModelID uint DeviceModel DeviceModel DateLastValueReported time.Time DeviceState string }
Device is the database model to store devices in our database
type DeviceControlledProperty ¶
DeviceControlledProperty stores different properties that devices can control/sense/meter/whatever
type DeviceModel ¶
type DeviceModel struct { gorm.Model DeviceModelID string `gorm:"unique"` BrandName string ModelName string ManufacturerName string Name string Category string ControlledProperties []DeviceControlledProperty `gorm:"many2many:devicemodel_ctrlprops;"` }
DeviceModel is the database model to store Fiware Device Models in our database
Click to show internal directories.
Click to hide internal directories.