Documentation
¶
Index ¶
- Variables
- type CacheEngine
- type ExecOutputMap
- type ExecutionOutput
- type ExecutionOutputGetter
- type ExecutionOutputSetter
- type NoOpCache
- func (n *NoOpCache) EndOfStream(blockNum uint64) error
- func (n *NoOpCache) HandleFinal(clock *pbsubstreams.Clock) error
- func (n *NoOpCache) HandleUndo(clock *pbsubstreams.Clock, moduleName string)
- func (n *NoOpCache) Init(modules *manifest.ModuleHashes) error
- func (n *NoOpCache) NewBlock(blockRef bstream.BlockRef, step bstream.StepType) error
- func (n *NoOpCache) NewExecOutput(blockType string, block *bstream.Block, clock *pbsubstreams.Clock, ...) (ExecutionOutput, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = errors.New("inputs module value not found")
Functions ¶
This section is empty.
Types ¶
type CacheEngine ¶
type CacheEngine interface {
NewExecOutput(blockType string, block *bstream.Block, clock *pbsubstreams.Clock, cursor *bstream.Cursor) (ExecutionOutput, error)
Init(modules *manifest.ModuleHashes) error
EndOfStream(blockNum uint64) error
HandleFinal(clock *pbsubstreams.Clock) error
HandleUndo(clock *pbsubstreams.Clock, moduleName string)
}
func NewNoOpCache ¶
func NewNoOpCache() CacheEngine
type ExecOutputMap ¶
type ExecOutputMap struct {
// contains filtered or unexported fields
}
func NewExecOutputMap ¶
func NewExecOutputMap(blockType string, block *bstream.Block, clock *pbsubstreams.Clock) (*ExecOutputMap, error)
func (*ExecOutputMap) Clock ¶
func (i *ExecOutputMap) Clock() *pbsubstreams.Clock
type ExecutionOutput ¶
type ExecutionOutput interface {
ExecutionOutputGetter
ExecutionOutputSetter
}
ExecutionOutput Execution output for a given graph at a given block
type ExecutionOutputGetter ¶
type ExecutionOutputSetter ¶
type NoOpCache ¶
type NoOpCache struct {
}
func (*NoOpCache) EndOfStream ¶
func (*NoOpCache) HandleFinal ¶
func (n *NoOpCache) HandleFinal(clock *pbsubstreams.Clock) error
func (*NoOpCache) HandleUndo ¶
func (n *NoOpCache) HandleUndo(clock *pbsubstreams.Clock, moduleName string)
func (*NoOpCache) NewExecOutput ¶
func (n *NoOpCache) NewExecOutput(blockType string, block *bstream.Block, clock *pbsubstreams.Clock, cursor *bstream.Cursor) (ExecutionOutput, error)
Click to show internal directories.
Click to hide internal directories.