leveldb

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

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 added in v1.1.0

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 added in v1.1.0

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