Documentation
¶
Index ¶
Constants ¶
View Source
const KEYFRAME_RATE = 16
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map interface {
ToBytes() []byte
GetTimeRange() (time.Time, time.Time)
Add(timestamp time.Time, key string, value []byte)
GetItem(timestamp time.Time, key string) []byte
Update(timestamp time.Time, key string, value []byte)
Remove(timestamp time.Time, key string)
GetStateAtTime(timestamp time.Time) map[string][]byte
FindNextTimeKey(timestamp time.Time, dir int, key string) (time.Time, error)
}
type TimeValueStore ¶
type TimeValueStore struct {
Keyframes []keyFrame
}
TimeValueStore holds the values and diffs with associated timestamps
func NewTimeValueStore ¶
func NewTimeValueStore() *TimeValueStore
func (*TimeValueStore) AddValue ¶
func (store *TimeValueStore) AddValue(timestamp time.Time, value []byte)
Add a value that is valid @timestamp and after
func (*TimeValueStore) FindNextTimeKey ¶
func (*TimeValueStore) QueryValue ¶
func (store *TimeValueStore) QueryValue(timestamp time.Time) []byte
Click to show internal directories.
Click to hide internal directories.