outputmodules

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidateRequest = ValidateTier1Request

Deprecated: use ValidateTier1Request

Functions

func ValidateTier1Request added in v1.1.1

func ValidateTier1Request(request *pbsubstreamsrpc.Request, blockType string) error

ValidateTier1Request is run by the server code.

func ValidateTier2Request added in v1.1.1

func ValidateTier2Request(request *pbssinternal.ProcessRangeRequest, blockType string) error

Types

type ExecutionStages added in v1.1.9

type ExecutionStages []StageLayers

A list of units that we can schedule, that might include some mappers and a store, or the last module could be an exeuction layer with only a map.

func (ExecutionStages) LastStage added in v1.1.9

func (e ExecutionStages) LastStage() StageLayers

type Graph

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

func NewOutputModuleGraph

func NewOutputModuleGraph(outputModule string, productionMode bool, modules *pbsubstreams.Modules) (out *Graph, err error)

func TestGraphStagedModules added in v1.1.9

func TestGraphStagedModules(initialBlock1, ib2, ib3, ib4, ib5 uint64) *Graph

func TestNew

func TestNew() *Graph

func (*Graph) AncestorsFrom

func (g *Graph) AncestorsFrom(moduleName string) []string

func (*Graph) IsOutputModule

func (g *Graph) IsOutputModule(name string) bool

func (*Graph) LowestInitBlock added in v1.1.9

func (g *Graph) LowestInitBlock() uint64

func (*Graph) ModuleHashes

func (g *Graph) ModuleHashes() *manifest.ModuleHashes

func (*Graph) OutputModule

func (g *Graph) OutputModule() *pbsubstreams.Module

func (*Graph) SchedulableModuleNames

func (g *Graph) SchedulableModuleNames() []string

func (*Graph) StagedUsedModules added in v1.1.5

func (g *Graph) StagedUsedModules() ExecutionStages

func (*Graph) Stores

func (g *Graph) Stores() []*pbsubstreams.Module

func (*Graph) UsedModules added in v1.0.2

func (g *Graph) UsedModules() []*pbsubstreams.Module

func (*Graph) ValidateRequestStartBlock

func (g *Graph) ValidateRequestStartBlock(requestStartBlockNum uint64) error

type LayerModules added in v1.1.9

type LayerModules []*pbsubstreams.Module

The list of modules in a given layer of either maps or stores. A given layer will always be comprised of only the same kind of modules.

func (LayerModules) IsStoreLayer added in v1.1.9

func (l LayerModules) IsStoreLayer() bool

type StageLayers added in v1.1.9

type StageLayers []LayerModules

For a given execution stage, the layers of execution, for example: a layer of mappers, followed by a layer of stores.

func (StageLayers) LastLayer added in v1.1.9

func (l StageLayers) LastLayer() LayerModules

Jump to

Keyboard shortcuts

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