Documentation
¶
Index ¶
- Variables
- func ComputeStartBlock(startBlock uint64, saveBlockInterval uint64) uint64
- type Buffer
- type Config
- func (c *Config) ListSnapshotFiles(ctx context.Context, inRange *bstream.Range) (files FileInfos, err error)
- func (c *Config) ModuleInitialBlock() uint64
- func (c *Config) ModuleKind() pbsubstreams.ModuleKind
- func (c *Config) Name() string
- func (c *Config) NewFile(targetRange *block.Range) *File
- func (c *Config) NewFileWalker(segmenter *block.Segmenter) *FileWalker
- type Configs
- type ExecutionOutput
- type ExecutionOutputGetter
- type ExecutionOutputSetter
- type File
- func (c *File) Filename() string
- func (c *File) Get(clock *pbsubstreams.Clock) ([]byte, bool)
- func (c *File) GetAtBlock(blockNumber uint64) ([]byte, bool)
- func (c *File) Load(ctx context.Context) error
- func (c *File) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (c *File) Save(ctx context.Context) error
- func (c *File) SetItem(clock *pbsubstreams.Clock, data []byte)
- func (c *File) SortedItems() (out []*pboutput.Item)
- func (c *File) String() string
- type FileInfo
- type FileInfos
- type FileWalker
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = errors.New("inputs module value not found")
Functions ¶
func ComputeStartBlock ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer holds the values produced by modules and exchanged between them as a sort of buffer.
func (*Buffer) Clock ¶
func (i *Buffer) Clock() *pbsubstreams.Clock
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) ListSnapshotFiles ¶
func (*Config) ModuleInitialBlock ¶
func (*Config) ModuleKind ¶
func (c *Config) ModuleKind() pbsubstreams.ModuleKind
func (*Config) NewFileWalker ¶ added in v1.1.9
func (c *Config) NewFileWalker(segmenter *block.Segmenter) *FileWalker
type Configs ¶
func NewConfigs ¶
func (*Configs) NewFileWalker ¶ added in v1.1.9
func (c *Configs) NewFileWalker(moduleName string, segmenter *block.Segmenter) *FileWalker
type ExecutionOutput ¶
type ExecutionOutput interface { ExecutionOutputGetter ExecutionOutputSetter }
ExecutionOutput gets/sets execution output for a given graph at a given block
type ExecutionOutputGetter ¶
type ExecutionOutputSetter ¶
type File ¶
type File struct { sync.RWMutex *block.Range ModuleName string // contains filtered or unexported fields }
A File in `execout` stores, for a given module (with a given hash), the outputs of module execution for _multiple blocks_, based on their block ID.
func (*File) MarshalLogObject ¶
func (c *File) MarshalLogObject(enc zapcore.ObjectEncoder) error
func (*File) SortedItems ¶
type FileWalker ¶ added in v1.1.9
type FileWalker struct {
// contains filtered or unexported fields
}
FileWalker allows you to jump from file to file, from segment to segment
func (*FileWalker) File ¶ added in v1.1.9
func (fw *FileWalker) File() *File
File returns the current segment's file. If the current segment is out of ranges, returns nil.
func (*FileWalker) IsDone ¶ added in v1.1.9
func (fw *FileWalker) IsDone() bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.