Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultGenesisBlock = 9820210 DefaultKeepFiles = false DefaultForceReindex = false DefaultFromBlock = DefaultGenesisBlock DefaultToBlock = 0 DefaultSubFolderBatchSize = 10000 DefaultRetryCountOnFailure = 10 DefaultWaitForBlockMs = 500 DefaultSourceFolder = "/tmp/relayer/json/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { KeepFiles bool `mapstructure:"keepFiles"` ForceReindex bool `mapstructure:"forceReindex"` RetryCountOnFailure uint8 `mapstructure:"retryCountOnFailure"` SubFolderBatchSize uint16 `mapstructure:"subFolderBatchSize"` GenesisBlock uint64 `mapstructure:"genesisBlock"` FromBlock uint64 `mapstructure:"fromBlock"` ToBlock uint64 `mapstructure:"toBlock"` SourceFolder string `mapstructure:"sourceFolder"` WaitForBlockMs uint16 `mapstructure:"waitForBlockMs"` }
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func NewWithBroker ¶
NewWithBroker is same as New but also sets broker for indexer. Both db.Handler and broker.Broker should not be nil. Initialize indexer with broker only if the JSON-RPC server supports subscription, otherwise use New instead.
Click to show internal directories.
Click to hide internal directories.