Documentation ¶
Index ¶
Constants ¶
View Source
const ( IndexerAVMName = "avm" IndexerPVMName = "pvm" MaximumRecordsRead = 10000 MaxTheads = 10 IteratorTimeout = 3 * time.Minute )
Variables ¶
View Source
var IndexerCChainDB = stream.NewConsumerCChainDB
View Source
var IndexerConsensusDB = stream.NewConsumerDBFactory(IndexerConsumer, stream.EventTypeConsensus)
View Source
var IndexerConsumer = func(networkID uint32, chainVM string, chainID string) (indexer services.Consumer, err error) { switch chainVM { case IndexerAVMName: indexer, err = avm.NewWriter(networkID, chainID) case IndexerPVMName: indexer, err = pvm.NewWriter(networkID, chainID) default: return nil, stream.ErrUnknownVM } return indexer, err }
View Source
var IndexerConsumerCChain = func(networkID uint32, chainID string) (indexer services.ConsumerCChain, err error) { return cvm.NewWriter(networkID, chainID) }
View Source
var IndexerDB = stream.NewConsumerDBFactory(IndexerConsumer, stream.EventTypeDecisions)
Functions ¶
func Bootstrap ¶
func Bootstrap(sc *servicesctrl.Control, networkID uint32, chains cfg.Chains, factories []ConsumerFactory) error
func IndexerFactories ¶
func IndexerFactories( sc *servicesctrl.Control, config *cfg.Config, factoriesChainDB []stream.ProcessorFactoryChainDB, factoriesInstDB []stream.ProcessorFactoryInstDB, wg *sync.WaitGroup, runningControl utils.Running, ) error
Types ¶
type ConsumerDBFactory ¶
type IndexerFactoryControl ¶
type IndexerFactoryControl struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.