immutable

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Type  uint
	Slot  uint64
	Hash  []byte
	IsEbb bool
	Cbor  []byte
}

type BlockIterator

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

func (*BlockIterator) Close

func (b *BlockIterator) Close() error

func (*BlockIterator) Next

func (b *BlockIterator) Next() (*Block, error)

type ImmutableDb

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

func New

func New(dataDir string) (*ImmutableDb, error)

New returns a new ImmutableDb using the specified data directory or an error

func (*ImmutableDb) BlocksFromPoint

func (i *ImmutableDb) BlocksFromPoint(
	point ocommon.Point,
) (*BlockIterator, error)

func (*ImmutableDb) GetBlock

func (i *ImmutableDb) GetBlock(point ocommon.Point) (*Block, error)

func (*ImmutableDb) GetTip

func (i *ImmutableDb) GetTip() (*ocommon.Point, error)

func (*ImmutableDb) TruncateChunksFromPoint

func (i *ImmutableDb) TruncateChunksFromPoint(point ocommon.Point) error

Jump to

Keyboard shortcuts

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