Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader interface { // Download traces or returning an error with the failure Download(txID common.Hash, blockIO flow.Identifier) (json.RawMessage, error) }
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func NewTracesIngestionEngine ¶
func NewTracesIngestionEngine( initEVMHeight uint64, blocksPublisher *models.Publisher, blocks storage.BlockIndexer, traces storage.TraceIndexer, downloader Downloader, logger zerolog.Logger, ) *Engine
func (*Engine) Error ¶ added in v0.23.1
Error is required by the publisher, and we just return a nil, since the errors are handled gracefully in the indexBlockTraces
func (*Engine) ID ¶ added in v0.23.1
ID is required by the publisher interface and we return a random uuid since the subscription will only happen once by this engine
type GCPDownloader ¶
type GCPDownloader struct {
// contains filtered or unexported fields
}
func NewGCPDownloader ¶
func NewGCPDownloader(bucketName string, logger zerolog.Logger) (*GCPDownloader, error)
func (*GCPDownloader) Download ¶
func (g *GCPDownloader) Download(txID common.Hash, blockID flow.Identifier) (json.RawMessage, error)
Click to show internal directories.
Click to hide internal directories.