codec

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProto

func FromProto(b interface{}) (*bstream.Block, error)

func SetFirstStreamableBlock

func SetFirstStreamableBlock(height uint64)

SetFirstStreamableBlock sets first block height available for streaming

func Validate

func Validate() error

Types

type BlockReader

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

BlockReader reads the dbin format where each element is assumed to be a `bstream.Block`.

func NewBlockReader

func NewBlockReader(reader io.Reader) (out *BlockReader, err error)

func (*BlockReader) Read

func (l *BlockReader) Read() (*bstream.Block, error)

type BlockWriter

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

func NewBlockWriter

func NewBlockWriter(writer io.Writer) (*BlockWriter, error)

func (*BlockWriter) Write

func (w *BlockWriter) Write(block *bstream.Block) error

type ConsoleReader

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

func NewConsoleReader

func NewConsoleReader(lines chan string, logger *zap.Logger) (*ConsoleReader, error)

func (*ConsoleReader) Close

func (cr *ConsoleReader) Close()

func (*ConsoleReader) Done

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

func (*ConsoleReader) ReadBlock

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

type ParsedLine

type ParsedLine struct {
	Kind string
	Data interface{}
}

Jump to

Keyboard shortcuts

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