Documentation ¶
Index ¶
- Variables
- type Image
- type ImageLogSeg
- type ImageMemLog
- type ImageTimestamp
- type MemLog
- func (memlog *MemLog) Append(im Image, t Timestamp) error
- func (memlog *MemLog) AppendStats() (int, uint64, Timestamp)
- func (memlog *MemLog) Backup(fPath string)
- func (memlog *MemLog) Read(imts chan<- ImageTimestamp, tstart, tstop Timestamp, err chan<- error)
- func (memlog *MemLog) Recover(recoveryFile *os.File, camid string)
- type Store
- type Timestamp
- type TimestampLogSeg
- type TimestampMemLog
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSearchRange = errors.New("Storage: Illegal search range") ErrTimestampOrder = errors.New("Memlog: Timestamp order error") ErrTimestampMissing = errors.New("Memlog: Start timestamp not yet in log") )
View Source
var LOGSIZE uint64 = 5
View Source
var SEGSIZE uint64 = 10 //10
Functions ¶
This section is empty.
Types ¶
type ImageLogSeg ¶
type ImageLogSeg struct {
// contains filtered or unexported fields
}
Image log Not explicitly protected by a lock, but should be used with timstamp lock
type ImageMemLog ¶
type ImageMemLog struct {
// contains filtered or unexported fields
}
func NewImageMemLog ¶
func NewImageMemLog() *ImageMemLog
type ImageTimestamp ¶
type MemLog ¶
type MemLog struct {
// contains filtered or unexported fields
}
Mem log is composed of timstamp and image logs
type TimestampLogSeg ¶
type TimestampLogSeg struct {
// contains filtered or unexported fields
}
Timestamp log
type TimestampMemLog ¶
type TimestampMemLog struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.