leveldb

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCache               = 1024 // 1 GiB
	DefaultHandles             = 512  // files handles to leveldb open files
	DefaultBloomKeyBits        = 2048 // bloom filter bits (256 bytes)
	DefaultCompactionTableSize = 8    // 8  MiB
	DefaultCompactionTotalSize = 32   // 32 MiB
	DefaultNoSync              = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder added in v1.1.3

type Builder interface {
	// set cache size
	SetCacheSize(int) Builder

	// set handles
	SetHandles(int) Builder

	// set bloom key bits
	SetBloomKeyBits(int) Builder

	// set compaction table size
	SetCompactionTableSize(int) Builder

	// set compaction table total size
	SetCompactionTotalSize(int) Builder

	// set no sync
	SetNoSync(bool) Builder

	// build the storage
	Build() (storage.Storage, error)
}

func NewBuilder added in v1.1.3

func NewBuilder(logger hclog.Logger, path string) Builder

NewBuilder creates the new leveldb storage builder

Jump to

Keyboard shortcuts

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