Documentation
¶
Index ¶
- Constants
- type DBCache
- func (ds *DBCache) Close() error
- func (ds *DBCache) DeleteImages(device string, state mdimg.ImageState, fromdate, todate time.Time) error
- func (ds *DBCache) GetImageIDs(device string) ([]string, error)
- func (ds *DBCache) GetImageIDsBetween(device string, fromdate, todate time.Time) ([]string, error)
- func (ds *DBCache) GetImageIDsWithState(device string, state mdimg.ImageState) ([]string, error)
- func (ds *DBCache) LoadImage(id string, image *mdimg.MDImage) error
- func (ds *DBCache) LoadImageInfo(id string, image *mdimg.MDImage) error
- func (ds *DBCache) Open() error
- func (ds *DBCache) SaveImage(image *mdimg.MDImage) error
- func (ds *DBCache) SetStateToImages(device string, state mdimg.ImageState, fromdate, todate time.Time) error
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) DeleteImages ¶
func (*DBCache) GetImageIDsBetween ¶
func (*DBCache) GetImageIDsWithState ¶
func (*DBCache) LoadImageInfo ¶
func (*DBCache) SetStateToImages ¶
Click to show internal directories.
Click to hide internal directories.