level

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Welcome = true

	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)

func SetBatchSize added in v0.16.1

func SetBatchSize(size int)

func SetMode added in v0.16.1

func SetMode(move bool)

Types

type CMResult added in v0.16.1

type CMResult struct {
	Records int        // Number of records
	Skipped int        // Number of records skipped
	Size    int        // Total amount of data
	Range   util.Range // Start and Limit of operation
}

type Config added in v0.3.0

type Config struct {
	BlockCacheSize       string // size of block cache
	BlockheaderCacheSize string // size of block header cache
	Home                 string // home directory
	Network              string // network e.g. "testnet3", "mainnet" etc
	// contains filtered or unexported fields
}

func NewConfig added in v0.3.0

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

func (*Config) SetNoninteractive added in v0.16.1

func (cfg *Config) SetNoninteractive(x bool)

type IteratorError

type IteratorError error

Jump to

Keyboard shortcuts

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