Versions in this module Expand all Collapse all v0 v0.10.2 Nov 25, 2022 Changes in this version + const MaxKeyLength + const MaxKeys + const MaxValueLength + var ErrIterationDone = errors.New("no more items in iterator") + func SetLogger(l *log.Logger) + type CompactionResult struct + CompactedSegments int + ReclaimedBytes int + ReclaimedRecords int + type DB struct + func Open(path string, opts *Options) (*DB, error) + func (db *DB) Close() error + func (db *DB) Compact() (CompactionResult, error) + func (db *DB) Count() uint32 + func (db *DB) Delete(key []byte) error + func (db *DB) FileSize() (int64, error) + func (db *DB) Get(key []byte) ([]byte, error) + func (db *DB) Has(key []byte) (bool, error) + func (db *DB) Items() *ItemIterator + func (db *DB) Metrics() *Metrics + func (db *DB) Put(key []byte, value []byte) error + func (db *DB) Sync() error + type ItemIterator struct + func (it *ItemIterator) Next() ([]byte, []byte, error) + type Metrics struct + Dels expvar.Int + Gets expvar.Int + HashCollisions expvar.Int + Puts expvar.Int + type Options struct + BackgroundCompactionInterval time.Duration + BackgroundSyncInterval time.Duration + FileSystem fs.FileSystem + ReadOnly bool