controller

package
v0.0.0-...-658f060 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDevice

func AddDevice(db *gorm.DB, telegram tracking.SmartModule, device *model.AddDevice) error

func AddTemplate

func AddTemplate(db *gorm.DB, telegram tracking.SmartModule, template *model.AddTemplate) error

func DeleteDevice

func DeleteDevice(db *gorm.DB, telegram tracking.SmartModule, id uint) error

func DeleteTemplate

func DeleteTemplate(db *gorm.DB, telegram tracking.SmartModule, id uint) error

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 ShowAllDevices(db *gorm.DB, telegram tracking.SmartModule, csv bool) ([]model.Device, error)

func ShowAllInterfaces

func ShowAllInterfaces(db *gorm.DB, telegram tracking.SmartModule, deviceID uint, csv bool) error

func ShowAllTemplates

func ShowAllTemplates(db *gorm.DB, telegram tracking.SmartModule, csv bool) error

func UpdateDevice

func UpdateDevice(db *gorm.DB, telegram tracking.SmartModule, id uint, device *model.AddDevice) error

func UpdateTemplate

func UpdateTemplate(db *gorm.DB, telegram tracking.SmartModule, id uint, template *model.AddTemplate) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL