pipeline

package
v0.0.5-beta3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseExecutor

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

type MapperModuleExecutor

type MapperModuleExecutor struct {
	*BaseExecutor
	// contains filtered or unexported fields
}

func (*MapperModuleExecutor) String

func (e *MapperModuleExecutor) String() string

type ModuleExecutor

type ModuleExecutor interface {
	String() string
	// contains filtered or unexported methods
}

func OptimizeExecutors

func OptimizeExecutors(moduleOutputCache map[string]*outputCache, moduleExecutors []ModuleExecutor, requestedOutputStores []string) (optimizedModuleExecutors []ModuleExecutor, skipBlockSource bool)

type ModulesOutputCache

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

func NewModuleOutputCache

func NewModuleOutputCache() *ModulesOutputCache

type Option

type Option func(p *Pipeline)

func WithAllowInvalidState

func WithAllowInvalidState() Option

func WithPartialMode

func WithPartialMode() Option

func WithPostBlockHook

func WithPostBlockHook(f substreams.BlockHook) Option

func WithPostJobHook

func WithPostJobHook(f substreams.PostJobHook) Option

func WithPreBlockHook

func WithPreBlockHook(f substreams.BlockHook) Option

func WithStoresSaveInterval

func WithStoresSaveInterval(seconds uint64) Option

type Pipeline

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

func New

func New(
	ctx context.Context,
	request *pbsubstreams.Request,
	graph *manifest.ModuleGraph,
	blockType string,
	baseStateStore dstore.Store,
	baseOutputCacheStore dstore.Store,
	wasmExtensions []wasm.WASMExtensioner,
	blocksFunc func(ctx context.Context, r *pbsubstreams.Request) error,
	opts ...Option) *Pipeline

func (*Pipeline) HandlerFactory

func (p *Pipeline) HandlerFactory(returnFunc substreams.ReturnFunc) (bstream.Handler, error)

func (*Pipeline) SynchronizeStores

func (p *Pipeline) SynchronizeStores(ctx context.Context) error

type PipelineOptioner

type PipelineOptioner interface {
	PipelineOptions(ctx context.Context, request *pbsubstreams.Request) []Option
}

type StoreModuleExecutor

type StoreModuleExecutor struct {
	*BaseExecutor
	// contains filtered or unexported fields
}

func (*StoreModuleExecutor) String

func (e *StoreModuleExecutor) String() string

Jump to

Keyboard shortcuts

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