Documentation ¶
Index ¶
- Constants
- Variables
- func Bootstrap(sc *services.Control, networkID uint32, chains cfg.Chains, ...) error
- func ExportToDisk(conf *cfg.Config, exportPath string, chainID string) (int64, error)
- func IndexerFactories(sc *services.Control, config *cfg.Config, ...) error
- type ConsumerDBFactory
- type ConsumerFactory
- type IndexerFactoryContainer
- type IndexerFactoryControl
Constants ¶
View Source
const ( IndexerAVMName = "avm" IndexerPVMName = "pvm" MaximumRecordsRead = 10000 MaxTheads = 10 MaxChanSize = 1000 )
Variables ¶
View Source
var (
ErrExportFileExists = errors.New("export file exists")
)
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 ExportToDisk ¶
ExportToDisk writes the stream data for a given chain out to disk
func IndexerFactories ¶
func IndexerFactories(sc *services.Control, config *cfg.Config, factoriesChainDB []stream.ProcessorFactoryChainDB, factoriesInstDB []stream.ProcessorFactoryInstDB) error
Types ¶
type ConsumerDBFactory ¶
type IndexerFactoryContainer ¶
type IndexerFactoryContainer struct {
// contains filtered or unexported fields
}
type IndexerFactoryControl ¶
type IndexerFactoryControl struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.