Documentation
¶
Index ¶
- func ComputeDBinFilename(startBlock, stopBlock uint64) string
- func ComputeStartBlock(startBlock uint64, saveBlockInterval uint64) uint64
- func NewEngine(runtimeConfig config.RuntimeConfig, logger *zap.Logger) (execout.CacheEngine, error)
- type CacheItem
- type Engine
- func (e *Engine) Close() error
- func (e *Engine) EndOfStream(blockNum uint64) error
- func (e *Engine) HandleFinal(clock *pbsubstreams.Clock) error
- func (e *Engine) HandleUndo(clock *pbsubstreams.Clock, moduleName string)
- func (e *Engine) Init(modules *manifest.ModuleHashes) error
- func (e *Engine) NewExecOutput(blockType string, block *bstream.Block, clock *pbsubstreams.Clock, ...) (execout.ExecutionOutput, error)
- type ExecOutputCache
- type OutputCache
- func (c *OutputCache) Delete(blockID string)
- func (c *OutputCache) Get(clock *pbsubstreams.Clock) ([]byte, bool)
- func (c *OutputCache) GetAtBlock(blockNumber uint64) ([]byte, bool)
- func (c *OutputCache) ListCacheRanges(ctx context.Context) (block.Ranges, error)
- func (c *OutputCache) ListContinuousCacheRanges(ctx context.Context, from uint64) (block.Ranges, error)
- func (c *OutputCache) Load(ctx context.Context, blockRange *block.Range) error
- func (c *OutputCache) LoadAtBlock(ctx context.Context, atBlock uint64) (found bool, err error)
- func (c *OutputCache) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (c *OutputCache) Set(clock *pbsubstreams.Clock, cursor string, data []byte) error
- func (c *OutputCache) SortedCacheItems() (out []*CacheItem)
- func (c *OutputCache) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeDBinFilename ¶
func ComputeStartBlock ¶
func NewEngine ¶
func NewEngine(runtimeConfig config.RuntimeConfig, logger *zap.Logger) (execout.CacheEngine, error)
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) EndOfStream ¶
func (*Engine) HandleFinal ¶
func (e *Engine) HandleFinal(clock *pbsubstreams.Clock) error
func (*Engine) HandleUndo ¶
func (e *Engine) HandleUndo(clock *pbsubstreams.Clock, moduleName string)
func (*Engine) NewExecOutput ¶
type ExecOutputCache ¶
type ExecOutputCache struct {
*execout.ExecOutputMap
// contains filtered or unexported fields
}
type OutputCache ¶
func NewOutputCache ¶
func (*OutputCache) Delete ¶
func (c *OutputCache) Delete(blockID string)
func (*OutputCache) Get ¶
func (c *OutputCache) Get(clock *pbsubstreams.Clock) ([]byte, bool)
func (*OutputCache) GetAtBlock ¶
func (c *OutputCache) GetAtBlock(blockNumber uint64) ([]byte, bool)
func (*OutputCache) ListCacheRanges ¶
func (*OutputCache) ListContinuousCacheRanges ¶
func (*OutputCache) LoadAtBlock ¶
func (*OutputCache) MarshalLogObject ¶
func (c *OutputCache) MarshalLogObject(enc zapcore.ObjectEncoder) error
func (*OutputCache) Set ¶
func (c *OutputCache) Set(clock *pbsubstreams.Clock, cursor string, data []byte) error
func (*OutputCache) SortedCacheItems ¶
func (c *OutputCache) SortedCacheItems() (out []*CacheItem)
func (*OutputCache) String ¶
func (c *OutputCache) String() string
Click to show internal directories.
Click to hide internal directories.