codec

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const FirePrefixLen = len("FIRE ")

Variables

This section is empty.

Functions

func SplitInChunks

func SplitInChunks(line string, count int) ([]string, 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 NewConsoleReader

func NewConsoleReader(lines chan string, blockEncoder firecore.BlockEncoder, rpcUrl string) (*ConsoleReader, error)

func (*ConsoleReader) Close

func (r *ConsoleReader) Close()

func (*ConsoleReader) Done

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

todo: WTF?

func (*ConsoleReader) ProcessData

func (r *ConsoleReader) ProcessData(reader io.Reader) error

func (*ConsoleReader) ReadBlock

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

type RPCBlockMetaGetter

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

func NewRPCBlockMetaGetter

func NewRPCBlockMetaGetter(endpointURL string) *RPCBlockMetaGetter

Jump to

Keyboard shortcuts

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