Documentation
¶
Index ¶
- Constants
- type DBStorage
- func (ds *DBStorage) Close() error
- func (ds *DBStorage) DeleteImages(device string, state mdimg.ImageState, fromdate, todate time.Time) error
- func (ds *DBStorage) DeleteOldSequences(cnt int) error
- func (ds *DBStorage) DeleteSequence(triggerid string) error
- func (ds *DBStorage) ExportSequence(triggerid string, path string) error
- func (ds *DBStorage) GetIDByTime(device string, captured time.Time) (string, error)
- func (ds *DBStorage) GetSequenceInfos(triggerid string, state mdimg.ImageState) ([]SequenceImage, error)
- func (ds *DBStorage) GetTriggerSI() ([]SequenceImage, error)
- func (ds *DBStorage) LoadImage(id string, image *mdimg.MDImage) error
- func (ds *DBStorage) LoadImageInfo(id string, image *mdimg.MDImage) error
- func (ds *DBStorage) Open() error
- func (ds *DBStorage) SaveBlock(device string, cacheids []string, rammaxage, dbmaxage time.Duration) error
- func (ds *DBStorage) SetStateToSequence(triggerid string, state mdimg.ImageState) error
- func (ds *DBStorage) Vacuum() error
- type SequenceImage
- type TriggerInfo
Constants ¶
View Source
const DBFILE = "data/monmotion/storage.db3"
View Source
const TableName = "images"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBStorage ¶
type DBStorage struct {
// contains filtered or unexported fields
}
var Stor DBStorage
func (*DBStorage) DeleteImages ¶
func (*DBStorage) DeleteOldSequences ¶
func (*DBStorage) DeleteSequence ¶
func (*DBStorage) ExportSequence ¶
func (*DBStorage) GetIDByTime ¶
func (*DBStorage) GetSequenceInfos ¶
func (ds *DBStorage) GetSequenceInfos(triggerid string, state mdimg.ImageState) ([]SequenceImage, error)
func (*DBStorage) GetTriggerSI ¶
func (ds *DBStorage) GetTriggerSI() ([]SequenceImage, error)
func (*DBStorage) LoadImageInfo ¶
func (*DBStorage) SetStateToSequence ¶
func (ds *DBStorage) SetStateToSequence(triggerid string, state mdimg.ImageState) error
type SequenceImage ¶
Click to show internal directories.
Click to hide internal directories.