Documentation ¶
Overview ¶
OverDB is an implementation of the GroupOverview database, based on boltDB (bbolt) and the SSTable format from LevelDB.
OverDB implements the GroupOverview database, which is basically a sorted key-value store, storing (group=>status+description) pairs.
BoltDB is used for metadata and it is used to implement a Writable key-value store.
LevelDB's SSTable is used as a Read-Only key-value store and an Export- and Import-format for the key-value pairs.
Index ¶
- type DB
- func (db *DB) Export() (string, error)
- func (db *DB) GroupOverviewBatchUpdate(targ func(groupover.GroupOverviewUpdater) error) error
- func (db *DB) GroupOverviewGet(group []byte, buffer []byte) (statusAndDescr []byte)
- func (db *DB) GroupOverviewList(targ func(group []byte, statusAndDescr []byte)) bool
- func (db *DB) GroupOverviewSetDescr(group []byte, descr []byte) error
- func (db *DB) GroupOverviewSetStatus(group []byte, status byte) error
- func (db *DB) Import(r io.Reader) error
- func (db *DB) Init() (e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) GroupOverviewBatchUpdate ¶
func (db *DB) GroupOverviewBatchUpdate(targ func(groupover.GroupOverviewUpdater) error) error
func (*DB) GroupOverviewGet ¶
func (*DB) GroupOverviewList ¶
func (*DB) GroupOverviewSetDescr ¶
func (*DB) GroupOverviewSetStatus ¶
Click to show internal directories.
Click to hide internal directories.