analyzer

package
v0.1.5-rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AggregateStatsAnalyzerName = "aggregate_stats"
)
View Source
const MetadataRegistryAnalyzerName = "metadata_registry"

Variables

View Source
var (
	// ErrOutOfRange is returned if the current block does not fall within the
	// analyzer's analysis range.
	ErrOutOfRange = errors.New("range not found. no data source available")

	// ErrLatestBlockNotFound is returned if the analyzer has not indexed any
	// blocks yet. This indicates to begin from the start of its range.
	ErrLatestBlockNotFound = errors.New("latest block not found")
)

Functions

This section is empty.

Types

type AggregateStatsAnalyzer

type AggregateStatsAnalyzer struct {
	// contains filtered or unexported fields
}

func NewAggregateStatsAnalyzer

func NewAggregateStatsAnalyzer(cfg *config.AggregateStatsConfig, target storage.TargetStorage, logger *log.Logger) (*AggregateStatsAnalyzer, error)

func (*AggregateStatsAnalyzer) Name

func (a *AggregateStatsAnalyzer) Name() string

func (*AggregateStatsAnalyzer) Start

func (a *AggregateStatsAnalyzer) Start(ctx context.Context)

type Analyzer

type Analyzer interface {
	// Start starts the analyzer.
	Start(ctx context.Context)

	// Name returns the name of the analyzer.
	Name() string
}

Analyzer is a worker that analyzes a subset of the Oasis Network.

type MetadataRegistryAnalyzer

type MetadataRegistryAnalyzer struct {
	// contains filtered or unexported fields
}

func (*MetadataRegistryAnalyzer) Name

func (a *MetadataRegistryAnalyzer) Name() string

func (*MetadataRegistryAnalyzer) Start

Directories

Path Synopsis
Package block implements the generic block based analyzer.
Package block implements the generic block based analyzer.
Package consensus implements an analyzer for the consensus layer.
Package consensus implements an analyzer for the consensus layer.
evm
Package util contains utility analyzer functionality.
Package util contains utility analyzer functionality.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL