dbcache

package
v0.0.0-...-3444db6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DBFILE = ":memory:"
View Source
const TableName = "images"

Variables

This section is empty.

Functions

This section is empty.

Types

type DBCache

type DBCache struct {
	// contains filtered or unexported fields
}
var Cache DBCache

func (*DBCache) Close

func (ds *DBCache) Close() error

func (*DBCache) DeleteImages

func (ds *DBCache) DeleteImages(device string, state mdimg.ImageState, fromdate, todate time.Time) error

func (*DBCache) GetImageIDs

func (ds *DBCache) GetImageIDs(device string) ([]string, error)

func (*DBCache) GetImageIDsBetween

func (ds *DBCache) GetImageIDsBetween(device string, fromdate, todate time.Time) ([]string, error)

func (*DBCache) GetImageIDsWithState

func (ds *DBCache) GetImageIDsWithState(device string, state mdimg.ImageState) ([]string, error)

func (*DBCache) LoadImage

func (ds *DBCache) LoadImage(id string, image *mdimg.MDImage) error

func (*DBCache) LoadImageInfo

func (ds *DBCache) LoadImageInfo(id string, image *mdimg.MDImage) error

func (*DBCache) Open

func (ds *DBCache) Open() error

func (*DBCache) SaveImage

func (ds *DBCache) SaveImage(image *mdimg.MDImage) error

func (*DBCache) SetStateToImages

func (ds *DBCache) SetStateToImages(device string, state mdimg.ImageState, fromdate, todate time.Time) error

Jump to

Keyboard shortcuts

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