codec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogPrefix        = "FIRE"
	LogInit          = "INIT"
	LogCheckpoint    = "CHECKPOINT"
	LogBlockStart    = "BLOCK_START"
	LogTrx           = "TRX"
	LogObjChange     = "OBJ_CHANGE"
	LogEvent         = "EVT"
	LogDisplayUpdate = "DSP_UPDATE"
	LogBlockEnd      = "BLOCK_END"
)

Variables

This section is empty.

Functions

func NewConsoleReader

func NewConsoleReader(
	lines chan string,
	blockEncoder firecore.BlockEncoder,
	logger *zap.Logger,
	tracer logging.Tracer,
) (mindreader.ConsolerReader, error)

Types

type ConsoleReader

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

ConsoleReader is what reads the `geth` output directly. It builds up some LogEntry objects. See `LogReader to read those entries .

func (*ConsoleReader) Close

func (r *ConsoleReader) Close()

func (*ConsoleReader) Done

func (r *ConsoleReader) Done() <-chan interface{}

func (*ConsoleReader) ReadBlock

func (r *ConsoleReader) ReadBlock() (out *pbbstream.Block, err error)

Jump to

Keyboard shortcuts

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