dao

package
v0.0.0-...-6684604 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO struct {
	// contains filtered or unexported fields
}

func New

func New(logger log.Logger) *DAO

func (*DAO) ExportFile

func (d *DAO) ExportFile(f string) error

func (*DAO) ExportWriter

func (d *DAO) ExportWriter(w io.Writer) error

func (*DAO) GetAllDevices

func (d *DAO) GetAllDevices() ([]model.Device, error)

func (*DAO) GetDeviceByID

func (d *DAO) GetDeviceByID(id uint64) (model.Device, bool, error)

func (*DAO) ImportDevices

func (d *DAO) ImportDevices(ms []model.Device) error

func (*DAO) ImportFile

func (d *DAO) ImportFile(f string) error

func (*DAO) ImportReader

func (d *DAO) ImportReader(r io.Reader) error

func (*DAO) UpsertDevice

func (d *DAO) UpsertDevice(m model.Device) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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