Documentation
¶
Index ¶
- type BaseExecutor
- type DeltaGetter
- type ErrorExecutor
- type ForkHandler
- type MapperModuleExecutor
- type ModuleExecutor
- type Option
- func WithCacheEnabled(cacheEnabled bool) Option
- func WithPartialModeEnabled(partialModeEnabled bool) Option
- func WithPostBlockHook(f substreams.BlockHook) Option
- func WithPostJobHook(f substreams.PostJobHook) Option
- func WithPreBlockHook(f substreams.BlockHook) Option
- func WithStoresSaveInterval(seconds uint64) Option
- func WithSubrequestExecution() Option
- func WithSyncBlockRangeRestriction(maxRangeSize uint64) Option
- type Pipeline
- type PipelineOptioner
- type StoreModuleExecutor
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 DeltaGetter ¶ added in v0.0.20
type DeltaGetter interface {
GetDeltas() []*pbsubstreams.StoreDelta
}
type ErrorExecutor ¶ added in v0.0.19
type ErrorExecutor struct {
// contains filtered or unexported fields
}
func (*ErrorExecutor) Error ¶ added in v0.0.19
func (e *ErrorExecutor) Error() string
type ForkHandler ¶ added in v0.0.20
type ForkHandler struct {
// contains filtered or unexported fields
}
func NewForkHandle ¶ added in v0.0.20
func NewForkHandle() *ForkHandler
type MapperModuleExecutor ¶
type MapperModuleExecutor struct {
BaseExecutor
// contains filtered or unexported fields
}
func (*MapperModuleExecutor) Name ¶
func (e *MapperModuleExecutor) Name() string
Name implements ModuleExecutor
func (*MapperModuleExecutor) Reset ¶
func (e *MapperModuleExecutor) Reset()
func (*MapperModuleExecutor) String ¶
func (e *MapperModuleExecutor) String() string
type ModuleExecutor ¶
type ModuleExecutor interface {
// Name returns the name of the module as defined in the manifest.
Name() string
// String returns the module executor representation, usually its name directly.
String() string
// Reset the wasm instance, avoid propagating logs.
Reset()
// contains filtered or unexported methods
}
func OptimizeExecutors ¶
func OptimizeExecutors(moduleOutputCache map[string]*outputs.OutputCache, moduleExecutors []ModuleExecutor, requestedOutputStores []string) (optimizedModuleExecutors []ModuleExecutor, skipBlockSource bool)
type Option ¶
type Option func(p *Pipeline)
func WithCacheEnabled ¶ added in v0.0.19
func WithPartialModeEnabled ¶ added in v0.0.19
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 WithSubrequestExecution ¶ added in v0.0.14
func WithSubrequestExecution() Option
TODO(abourget): OrchestratedExecution -> Subrequest isOrchestrated -> isSubrequest
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, outputCacheSaveBlockInterval uint64, wasmExtensions []wasm.WASMExtensioner, grpcClientFactory substreams.GrpcClientFactory, subrequestSplitSize int, respFunc func(resp *pbsubstreams.Response) error, opts ...Option) *Pipeline
func (*Pipeline) Init ¶ added in v0.0.14
func (p *Pipeline) Init(workerPool *orchestrator.WorkerPool) (err error)
func (*Pipeline) PartialsWritten ¶ added in v0.0.14
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) Name ¶
func (e *StoreModuleExecutor) Name() string
Name implements ModuleExecutor
func (*StoreModuleExecutor) Reset ¶
func (e *StoreModuleExecutor) Reset()
func (*StoreModuleExecutor) String ¶
func (e *StoreModuleExecutor) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.