factory

package
v1.1.19 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIndexer

func NewIndexer(args *ArgsIndexerFactory) (indexer.Indexer, error)

NewIndexer will create a new instance of Indexer

Types

type ArgsIndexerFactory

type ArgsIndexerFactory struct {
	Enabled                  bool
	IndexerCacheSize         int
	ShardCoordinator         sharding.Coordinator
	Url                      string
	UserName                 string
	Password                 string
	Marshalizer              marshal.Marshalizer
	Hasher                   hashing.Hasher
	EpochStartNotifier       sharding.EpochStartEventNotifier
	NodesCoordinator         sharding.NodesCoordinator
	AddressPubkeyConverter   core.PubkeyConverter
	ValidatorPubkeyConverter core.PubkeyConverter
	TemplatesPath            string
	Options                  *indexer.Options
	EnabledIndexes           []string
	Denomination             int
	AccountsDB               state.AccountsAdapter
	TransactionFeeCalculator process.TransactionFeeCalculator
	IsInImportDBMode         bool
}

ArgsIndexerFactory holds all dependencies required by the data indexer factory in order to create new instances

Jump to

Keyboard shortcuts

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