level

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIterator = IteratorError(errors.New("iteration error"))
)

Functions

func BatchAppend added in v0.7.0

func BatchAppend(ctx context.Context, b *leveldb.Batch, rows []tbcd.Row)

BatchAppend appends rows to batch b.

func New

func New(ctx context.Context, cfg *Config) (*ldb, error)

Types

type Config added in v0.3.0

type Config struct {
	Home                 string // home directory
	BlockCacheSize       string // size of block cache
	BlockheaderCacheSize string // size of block header cache
	// contains filtered or unexported fields
}

func NewConfig added in v0.3.0

func NewConfig(home, blockheaderCacheSizeS, blockCacheSizeS string) *Config

type IteratorError

type IteratorError error

Jump to

Keyboard shortcuts

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