export

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainExporter

type ChainExporter struct {
	Config ExportConfig
	// contains filtered or unexported fields
}

func NewChainExporter

func NewChainExporter(head *types.TipSet, store blockstore.Blockstore, out io.Writer, cfg ExportConfig) *ChainExporter

func (*ChainExporter) Export

func (ce *ChainExporter) Export(ctx context.Context) error

type CidKind

type CidKind int
const (
	Undefined CidKind = iota
	BlockHeader
	Dag
)

func (CidKind) String

func (c CidKind) String() string

type ExportConfig

type ExportConfig struct {
	MinHeight         uint64
	IncludeMessages   bool
	IncludeReceipts   bool
	IncludeStateRoots bool
	ShowProcess       bool
}

type Stack

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

func NewStack

func NewStack() *Stack

func (*Stack) Len

func (s *Stack) Len() int

func (*Stack) Peek

func (s *Stack) Peek() (cid.Cid, CidKind)

func (*Stack) Pop

func (s *Stack) Pop() (cid.Cid, CidKind)

func (*Stack) Push

func (s *Stack) Push(value cid.Cid, kind CidKind)

Jump to

Keyboard shortcuts

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