Documentation
¶
Index ¶
- func ComputeDBinFilename(startBlock, stopBlock uint64) string
- func ComputeStartBlock(startBlock uint64, saveBlockInterval uint64) uint64
- type CacheItem
- type ModulesOutputCache
- type OutputCache
- func (c *OutputCache) Get(clock *pbsubstreams.Clock) ([]byte, bool)
- func (c *OutputCache) GetAtBlock(blockNumber uint64) ([]byte, bool)
- func (c *OutputCache) IsOutOfRange(ref bstream.BlockRef) 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) 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 ¶ added in v0.0.19
func ComputeStartBlock ¶
Types ¶
type ModulesOutputCache ¶
type ModulesOutputCache struct {
OutputCaches map[string]*OutputCache
SaveBlockInterval uint64
}
func NewModuleOutputCache ¶
func NewModuleOutputCache(saveBlockInterval uint64) *ModulesOutputCache
func (*ModulesOutputCache) Flush ¶ added in v0.0.14
func (c *ModulesOutputCache) Flush(ctx context.Context) error
func (*ModulesOutputCache) RegisterModule ¶
func (c *ModulesOutputCache) RegisterModule(module *pbsubstreams.Module, hash string, baseCacheStore dstore.Store) (*OutputCache, error)
type OutputCache ¶
type OutputCache struct {
ModuleName string
CurrentBlockRange *block.Range
Store dstore.Store
// contains filtered or unexported fields
}
func NewOutputCache ¶
func NewOutputCache(moduleName string, store dstore.Store, saveBlockInterval uint64) *OutputCache
func (*OutputCache) Get ¶
func (c *OutputCache) Get(clock *pbsubstreams.Clock) ([]byte, bool)
func (*OutputCache) GetAtBlock ¶ added in v0.0.19
func (c *OutputCache) GetAtBlock(blockNumber uint64) ([]byte, bool)
func (*OutputCache) IsOutOfRange ¶
func (c *OutputCache) IsOutOfRange(ref bstream.BlockRef) bool
func (*OutputCache) ListCacheRanges ¶ added in v0.0.14
func (*OutputCache) ListContinuousCacheRanges ¶ added in v0.0.14
func (*OutputCache) LoadAtBlock ¶ added in v0.0.14
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.