bundler

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONLEncode

func JSONLEncode(message proto.Message) ([]byte, error)

Types

type Bundler

type Bundler struct {
	*shutter.Shutter
	// contains filtered or unexported fields
}

func New

func New(
	size uint64,
	boundaryWriter writer.Writer,
	stateStore state.Store,
	outputStore dstore.Store,
	zlogger *zap.Logger,
) (*Bundler, error)

func (*Bundler) Close

func (b *Bundler) Close()

func (*Bundler) GetCursor

func (b *Bundler) GetCursor() (*sink.Cursor, error)

func (*Bundler) Launch

func (b *Bundler) Launch(ctx context.Context)

func (*Bundler) Roll

func (b *Bundler) Roll(ctx context.Context, blockNum uint64) error

func (*Bundler) SetCursor

func (b *Bundler) SetCursor(cursor *sink.Cursor)

func (*Bundler) Start

func (b *Bundler) Start(blockNum uint64) error

func (*Bundler) TrackBlockProcessDuration

func (b *Bundler) TrackBlockProcessDuration(elapsed time.Duration)

func (*Bundler) Writer

func (b *Bundler) Writer() writer.Writer

type Encoder

type Encoder func(proto.Message) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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