level

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockHeadersDB  = "blockheaders"
	BlocksMissingDB = "blocksmissing"
	MetadataDB      = "metadata"
	KeystonesDB     = "keystones"
	HeightHashDB    = "heighthash"
	OutputsDB       = "outputs"
	TransactionsDB  = "transactions"

	BlocksDB = "blocks" // raw database
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Home    string
	Options opt.Options
}

func NewDefaultConfig

func NewDefaultConfig(home string) *Config

type Database

type Database struct {
	// contains filtered or unexported fields
}

func New

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

func (*Database) Close

func (l *Database) Close() error

func (*Database) DB

func (l *Database) DB() Pool

func (*Database) RawDB

func (l *Database) RawDB() RawPool

type Pool

type Pool map[string]*leveldb.DB

type RawPool

type RawPool map[string]*rawdb.RawDB

Jump to

Keyboard shortcuts

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