leveldb

package
v0.0.0-...-7782e6b Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelDB

type LevelDB struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string, opts ...LevelDBOption) *LevelDB

func (*LevelDB) BatchSet

func (ldb *LevelDB) BatchSet(kvs map[string][]byte) error

func (*LevelDB) Close

func (ldb *LevelDB) Close() error

func (*LevelDB) Del

func (ldb *LevelDB) Del(k []byte) (err error)

func (*LevelDB) Get

func (ldb *LevelDB) Get(k []byte) (v []byte)

func (*LevelDB) Name

func (ldb *LevelDB) Name() string

func (*LevelDB) Prefix

func (ldb *LevelDB) Prefix(k []byte) (res [][]byte)

func (*LevelDB) Range

func (ldb *LevelDB) Range(start, limit []byte) (res [][]byte)

func (*LevelDB) Scan

func (ldb *LevelDB) Scan() (res [][]byte)

func (*LevelDB) Set

func (ldb *LevelDB) Set(k, v []byte) (err error)

func (*LevelDB) SetTTL

func (ldb *LevelDB) SetTTL(k, v []byte, expire time.Duration) (err error)

func (*LevelDB) Suffix

func (ldb *LevelDB) Suffix(k []byte) (res [][]byte)

type LevelDBOption

type LevelDBOption func(opt.Options) opt.Options

Jump to

Keyboard shortcuts

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