block

package
v0.38.15 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexerFromConfig

func IndexerFromConfig(cfg *config.Config, dbProvider config.DBProvider, chainID string) (
	txIdx txindex.TxIndexer, blockIdx indexer.BlockIndexer, err error,
)

IndexerFromConfig constructs a slice of indexer.EventSink using the provided configuration.

func IndexerFromConfigWithDisabledIndexers added in v0.38.10

func IndexerFromConfigWithDisabledIndexers(cfg *config.Config, dbProvider config.DBProvider, chainID string) (
	txIdx txindex.TxIndexer, blockIdx indexer.BlockIndexer, allIndexersDisabled bool, err error,
)

IndexerFromConfigWithDisabledIndexers constructs a slice of indexer.EventSink using the provided configuration. If all indexers are disabled in the configuration, it returns null indexers. Otherwise, it creates the appropriate indexers based on the configuration.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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