Documentation ¶
Index ¶
- func AddDevice(db *gorm.DB, telegram tracking.SmartModule, device *model.AddDevice) error
- func AddTemplate(db *gorm.DB, telegram tracking.SmartModule, template *model.AddTemplate) error
- func DeleteDevice(db *gorm.DB, telegram tracking.SmartModule, id uint) error
- func DeleteTemplate(db *gorm.DB, telegram tracking.SmartModule, id uint) error
- func GetDeviceWithOIDRows(db *gorm.DB, telegram tracking.SmartModule) ([]*model.DeviceWithOID, error)
- func Scan(db *gorm.DB, telegram tracking.SmartModule, devices []*model.DeviceWithOID)
- func ShowAllDevices(db *gorm.DB, telegram tracking.SmartModule, csv bool) ([]model.Device, error)
- func ShowAllInterfaces(db *gorm.DB, telegram tracking.SmartModule, deviceID uint, csv bool) error
- func ShowAllTemplates(db *gorm.DB, telegram tracking.SmartModule, csv bool) error
- func UpdateDevice(db *gorm.DB, telegram tracking.SmartModule, id uint, device *model.AddDevice) error
- func UpdateTemplate(db *gorm.DB, telegram tracking.SmartModule, id uint, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTemplate ¶
func AddTemplate(db *gorm.DB, telegram tracking.SmartModule, template *model.AddTemplate) error
func DeleteDevice ¶
func DeleteTemplate ¶
func GetDeviceWithOIDRows ¶
func GetDeviceWithOIDRows(db *gorm.DB, telegram tracking.SmartModule) ([]*model.DeviceWithOID, error)
func Scan ¶
func Scan(db *gorm.DB, telegram tracking.SmartModule, devices []*model.DeviceWithOID)
func ShowAllDevices ¶
func ShowAllInterfaces ¶
func ShowAllTemplates ¶
func UpdateDevice ¶
func UpdateTemplate ¶
func UpdateTemplate(db *gorm.DB, telegram tracking.SmartModule, id uint, template *model.AddTemplate) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.