storage

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() (*gorm.DB, error)

func NewDeviceStore

func NewDeviceStore(db *gorm.DB) *deviceStore

Types

type Device

type Device interface {
	GetDevices(manager string) (models.Devices, error)
	NewDevice(manager string, device models.Device) error
	GetDevice(manager, deviceId string) (*models.Device, error)
	Update(manager string, dev device.Device) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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