repository

package
v0.0.0-...-87346ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeviceEventRepositorySqlite

func NewDeviceEventRepositorySqlite(s *sql.DB) repository.DeviceEventRepository

NewDeviceEventRepositorySqlite is used

func NewDeviceReadRepositorySqlite

func NewDeviceReadRepositorySqlite(s *sql.DB) repository.DeviceReadRepository

NewDeviceReadRepositorySqlite is used ..

Types

type DeviceEventRepositorySqlite

type DeviceEventRepositorySqlite struct {
	DB *sql.DB
}

DeviceEventRepositorySqlite is used ...

func (*DeviceEventRepositorySqlite) Save

func (s *DeviceEventRepositorySqlite) Save(uid uuid.UUID, latestVersion int, events []interface{}) <-chan error

Save is used to save a new device into the database, device_event table

type DeviceReadRepositorySqlite

type DeviceReadRepositorySqlite struct {
	DB *sql.DB
}

DeviceReadRepositorySqlite is used ...

func (*DeviceReadRepositorySqlite) Save

func (f *DeviceReadRepositorySqlite) Save(deviceRead *storage.DeviceRead) <-chan error

Save is used ...

Jump to

Keyboard shortcuts

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