leveldb

package
v0.0.0-...-231e548 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCache   = int(256)
	DefaultHandles = int(256)
)

Variables

This section is empty.

Functions

func Factory

func Factory(config map[string]interface{}, logger hclog.Logger) (storage.Storage, error)

Factory creates a leveldb storage

func NewBatchLevelDB

func NewBatchLevelDB(db *leveldb.DB) *batchLevelDB

func NewLevelDBStorage

func NewLevelDBStorage(path string, logger hclog.Logger) (storage.Storage, error)

NewLevelDBStorage creates the new storage reference with leveldb default options

func NewLevelDBStorageWithOpt

func NewLevelDBStorageWithOpt(path string, logger hclog.Logger, opts *opt.Options) (storage.Storage, error)

NewLevelDBStorageWithOpt creates the new storage reference with leveldb with custom options

Types

This section is empty.

Jump to

Keyboard shortcuts

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