overdb

package
v0.0.0-...-060dca9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 15 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	PPF  string
	Opts *opt.Options
	// contains filtered or unexported fields
}

func (*DB) Export

func (db *DB) Export() (string, error)

func (*DB) GroupOverviewBatchUpdate

func (db *DB) GroupOverviewBatchUpdate(targ func(groupover.GroupOverviewUpdater) error) error

func (*DB) GroupOverviewGet

func (db *DB) GroupOverviewGet(group []byte, buffer []byte) (statusAndDescr []byte)

func (*DB) GroupOverviewList

func (db *DB) GroupOverviewList(targ func(group []byte, statusAndDescr []byte)) bool

func (*DB) GroupOverviewSetDescr

func (db *DB) GroupOverviewSetDescr(group []byte, descr []byte) error

func (*DB) GroupOverviewSetStatus

func (db *DB) GroupOverviewSetStatus(group []byte, status byte) error

func (*DB) Import

func (db *DB) Import(r io.Reader) error

func (*DB) Init

func (db *DB) Init() (e error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL