cache

package
v1.5.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine manages the reversible segments and keeps track of the execution output between each module's.

Upon Finality, it writes it to some output cache files.

func NewEngine

func NewEngine(ctx context.Context, execOutWriters map[string]*execout.Writer, blockType string, existingExecOuts map[string]*execout.File) (*Engine, error)

func (*Engine) EndOfStream

func (e *Engine) EndOfStream(lastFinalClock *pbsubstreams.Clock) error

func (*Engine) HandleFinal

func (e *Engine) HandleFinal(clock *pbsubstreams.Clock) error

func (*Engine) HandleStalled

func (e *Engine) HandleStalled(clock *pbsubstreams.Clock) error

func (*Engine) HandleUndo

func (e *Engine) HandleUndo(clock *pbsubstreams.Clock)

func (*Engine) NewBuffer

func (e *Engine) NewBuffer(optionalBlock *pbbstream.Block, clock *pbsubstreams.Clock, cursor *bstream.Cursor) (execout.ExecutionOutput, error)

Jump to

Keyboard shortcuts

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