cache

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 8 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
}

TODO(abourget): this is now something like an execout.LifecycleWriter ?

pipeline.Lifecycle ? to hold also the *pbsubstreams.ModuleOutput
so that `ForkHandler` disappears in the end?

func NewEngine

func NewEngine(ctx context.Context, runtimeConfig config.RuntimeConfig, execOutWriter *execout.Writer, blockType string) (*Engine, error)

func (*Engine) Close

func (e *Engine) Close()

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(block *bstream.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