leveldb

package
v0.0.0-...-6a7e83e Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(path string) (storage.Storage, error)

func NewMultiLdb

func NewMultiLdb(dirPath string, opt *opt.Options, sizeThreshold int64) (storage.Storage, error)

NewMultiLdb New a multi layer leveldb. When size of top layer leveldb exceeds sizeThreshold(Byte), it will add a new layer leveldb above the top layer.

func NewWithOpt

func NewWithOpt(path string, opt *opt.Options) (storage.Storage, error)

Types

type KeyValueEntry

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

Jump to

Keyboard shortcuts

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