Versions in this module Expand all Collapse all v0 v0.4.2 Jun 28, 2019 v0.4.1 Jun 13, 2019 Changes in this version + type DB struct + func NewDB(path string, metricsPrefix string) (db *DB, err error) + func (db *DB) Close() (err error) + func (db *DB) Delete(key []byte) (err error) + func (db *DB) Get(key []byte) (value []byte, err error) + func (db *DB) Has(key []byte) (yes bool, err error) + func (db *DB) NewIndex(name string, funcs IndexFuncs) (f Index, err error) + func (db *DB) NewIterator() iterator.Iterator + func (db *DB) NewStringField(name string) (f StringField, err error) + func (db *DB) NewStructField(name string) (f StructField, err error) + func (db *DB) NewUint64Field(name string) (f Uint64Field, err error) + func (db *DB) NewUint64Vector(name string) (f Uint64Vector, err error) + func (db *DB) Put(key []byte, value []byte) (err error) + func (db *DB) WriteBatch(batch *leveldb.Batch) (err error) + type Index struct + func (f Index) Count() (count int, err error) + func (f Index) CountFrom(start Item) (count int, err error) + func (f Index) Delete(keyFields Item) (err error) + func (f Index) DeleteInBatch(batch *leveldb.Batch, keyFields Item) (err error) + func (f Index) First(prefix []byte) (i Item, err error) + func (f Index) Get(keyFields Item) (out Item, err error) + func (f Index) Has(keyFields Item) (bool, error) + func (f Index) Iterate(fn IndexIterFunc, options *IterateOptions) (err error) + func (f Index) Last(prefix []byte) (i Item, err error) + func (f Index) Put(i Item) (err error) + func (f Index) PutInBatch(batch *leveldb.Batch, i Item) (err error) + type IndexFuncs struct + DecodeKey func(key []byte) (e Item, err error) + DecodeValue func(keyFields Item, value []byte) (e Item, err error) + EncodeKey func(fields Item) (key []byte, err error) + EncodeValue func(fields Item) (value []byte, err error) + type IndexIterFunc func(item Item) (stop bool, err error) + type Item struct + AccessTimestamp int64 + Address []byte + BinID uint64 + Data []byte + StoreTimestamp int64 + func (i Item) Merge(i2 Item) (new Item) + type IterateOptions struct + Prefix []byte + SkipStartFromItem bool + StartFrom *Item + type StringField struct + func (f StringField) Get() (val string, err error) + func (f StringField) Put(val string) (err error) + func (f StringField) PutInBatch(batch *leveldb.Batch, val string) + type StructField struct + func (f StructField) Get(val interface{}) (err error) + func (f StructField) Put(val interface{}) (err error) + func (f StructField) PutInBatch(batch *leveldb.Batch, val interface{}) (err error) + type Uint64Field struct + func (f Uint64Field) Dec() (val uint64, err error) + func (f Uint64Field) DecInBatch(batch *leveldb.Batch) (val uint64, err error) + func (f Uint64Field) Get() (val uint64, err error) + func (f Uint64Field) Inc() (val uint64, err error) + func (f Uint64Field) IncInBatch(batch *leveldb.Batch) (val uint64, err error) + func (f Uint64Field) Put(val uint64) (err error) + func (f Uint64Field) PutInBatch(batch *leveldb.Batch, val uint64) + type Uint64Vector struct + func (f Uint64Vector) Dec(i uint64) (val uint64, err error) + func (f Uint64Vector) DecInBatch(batch *leveldb.Batch, i uint64) (val uint64, err error) + func (f Uint64Vector) Get(i uint64) (val uint64, err error) + func (f Uint64Vector) Inc(i uint64) (val uint64, err error) + func (f Uint64Vector) IncInBatch(batch *leveldb.Batch, i uint64) (val uint64, err error) + func (f Uint64Vector) Put(i, val uint64) (err error) + func (f Uint64Vector) PutInBatch(batch *leveldb.Batch, i, val uint64)