Documentation ¶
Overview ¶
Package indexdb handles the storage for indexes.
Design ¶
The db file name is index, and the key-value design in leveldb is:
Key: <Name> Value: <Stamp>:<Score>:<Average>
Cache ¶
To access indexes faster in webapp, indexes are cached in memory, in a safemap with a RWLock.
Read operations are in cache.
Write operations are to persistence and cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned when requested data not found. ErrNotFound = errors.New("indexdb: not found") // ErrCorrupted is returned when corrupted data found. ErrCorrupted = errors.New("indexdb: corrupted data found") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.