Documentation ¶
Index ¶
- Constants
- Variables
- func BlockToSequence(syncable *model.Syncable, rawBlock *blockpb.Block, ...) (*model.BlockSeq, error)
- func DebondingDelegationToSequence(syncable *model.Syncable, rawState *statepb.State) ([]model.DebondingDelegationSeq, error)
- func DelegationToSequence(syncable *model.Syncable, rawState *statepb.State) ([]model.DelegationSeq, error)
- func NewAccountAggCreatorTask(db *store.Store) *accountAggCreatorTask
- func NewBackfillSource(cfg *config.Config, db *store.Store, client *client.Client, ...) (*backfillSource, error)
- func NewBlockFetcherTask(client *client.Client) pipeline.Task
- func NewBlockParserTask() *blockParserTask
- func NewBlockSeqCreatorTask(db *store.Store) *blockSeqCreatorTask
- func NewBlockSeqPersistorTask(db *store.Store) pipeline.Task
- func NewDebondingDelegationsSeqCreatorTask(db *store.Store) *debondingDelegationSeqCreatorTask
- func NewDelegationsSeqCreatorTask(db *store.Store) *delegationSeqCreatorTask
- func NewHeightMetaRetrieverTask(c *client.Client) pipeline.Task
- func NewIndexSource(cfg *config.Config, db *store.Store, client *client.Client, ...) (*indexSource, error)
- func NewLogger() pipeline.Logger
- func NewMainSyncerTask(db *store.Store) pipeline.Task
- func NewPayloadFactory() *payloadFactory
- func NewPipeline(cfg *config.Config, db *store.Store, client *client.Client) (*indexingPipeline, error)
- func NewSink(db *store.Store, versionNumber int64) *sink
- func NewStakingSeqCreatorTask(db *store.Store) *stakingSeqCreatorTask
- func NewStakingStateFetcherTask(client *client.Client) pipeline.Task
- func NewStateFetcherTask(client *client.Client) pipeline.Task
- func NewSyncerPersistorTask(db *store.Store) pipeline.Task
- func NewTargetsReader(file string) (*targetsReader, error)
- func NewTransactionFetcherTask(client *client.Client) pipeline.Task
- func NewTransactionSeqCreatorTask(db *store.Store) *transactionSeqCreatorTask
- func NewValidatorAggCreatorTask(db *store.Store) *validatorAggCreatorTask
- func NewValidatorAggPersistorTask(db *store.Store) pipeline.Task
- func NewValidatorFetcherTask(client *client.Client) pipeline.Task
- func NewValidatorSeqCreatorTask(db *store.Store) *validatorSeqCreatorTask
- func NewValidatorSeqPersistorTask(db *store.Store) pipeline.Task
- func NewValidatorsParserTask() *validatorsParserTask
- func StakingToSequence(syncable *model.Syncable, rawState *statepb.State) (*model.StakingSeq, error)
- func TransactionToSequence(syncable *model.Syncable, rawTransactions []*transactionpb.Transaction) ([]model.TransactionSeq, error)
- func ValidatorToSequence(syncable *model.Syncable, rawValidators []*validatorpb.Validator, ...) ([]model.ValidatorSeq, error)
- type BackfillConfig
- type BackfillSourceConfig
- type BlockFetcherTask
- type HeightMeta
- type IndexSourceConfig
- type ParsedBlockData
- type ParsedValidatorsData
- type RunConfig
- type StakingStateFetcherTask
- type StartConfig
- type StateFetcherTask
- type TransactionFetcherTask
- type ValidatorFetcherTask
Constants ¶
View Source
const ( AccountAggCreatorTaskName = "AccountAggCreator" ValidatorAggCreatorTaskName = "ValidatorAggCreator" )
View Source
const ( BlockFetcherTaskName = "BlockFetcher" StateFetcherTaskName = "StateFetcher" StakingStateFetcherTaskName = "StakingStateFetcher" ValidatorFetcherTaskName = "ValidatorFetcher" TransactionFetcherTaskName = "TransactionFetcher" )
View Source
const ( BlockParserTaskName = "BlockParser" ValidatorsParserTaskName = "ValidatorsParser" )
View Source
const ( SyncerPersistorTaskName = "SyncerPersistor" BlockSeqPersistorTaskName = "BlockSeqPersistor" ValidatorSeqPersistorTaskName = "ValidatorSeqPersistor" ValidatorAggPersistorTaskName = "ValidatorAggPersistor" )
View Source
const ( BlockSeqCreatorTaskName = "BlockSeqCreator" ValidatorSeqCreatorTaskName = "ValidatorSeqCreator" TransactionSeqCreatorTaskName = "TransactionSeqCreator" StakingSeqCreatorTaskName = "StakingSeqCreator" DelegationSeqCreatorTaskName = "DelegationSeqCreator" DebondingDelegationSeqCreatorTaskName = "DebondingDelegationSeqCreator" )
View Source
const ( TargetIndexBlockSequences = iota + 1 TargetIndexValidatorSequences TargetIndexValidatorAggregates )
View Source
const (
CtxReport = "context_report"
)
View Source
const (
HeightMetaRetrieverTaskName = "HeightMetaRetriever"
)
View Source
const (
MainSyncerTaskName = "MainSyncer"
)
Variables ¶
View Source
var (
ErrAccountAggNotValid = errors.New("account aggregator not valid")
)
View Source
var (
ErrNothingToProcess = errors.New("nothing to process")
)
Functions ¶
func BlockToSequence ¶
func DelegationToSequence ¶
func NewBackfillSource ¶ added in v0.4.2
func NewBlockParserTask ¶ added in v0.4.0
func NewBlockParserTask() *blockParserTask
func NewBlockSeqCreatorTask ¶
func NewBlockSeqPersistorTask ¶ added in v0.4.2
func NewIndexSource ¶ added in v0.4.2
func NewPayloadFactory ¶
func NewPayloadFactory() *payloadFactory
func NewPipeline ¶
func NewStakingStateFetcherTask ¶ added in v0.4.0
func NewSyncerPersistorTask ¶ added in v0.4.2
func NewTargetsReader ¶ added in v0.4.2
NewTargetsReader constructor for targetsReader
func NewValidatorAggPersistorTask ¶ added in v0.4.2
func NewValidatorSeqPersistorTask ¶ added in v0.4.2
func NewValidatorsParserTask ¶ added in v0.4.0
func NewValidatorsParserTask() *validatorsParserTask
func StakingToSequence ¶
func TransactionToSequence ¶
func TransactionToSequence(syncable *model.Syncable, rawTransactions []*transactionpb.Transaction) ([]model.TransactionSeq, error)
func ValidatorToSequence ¶
func ValidatorToSequence(syncable *model.Syncable, rawValidators []*validatorpb.Validator, parsedValidators ParsedValidatorsData) ([]model.ValidatorSeq, error)
Types ¶
type BackfillConfig ¶ added in v0.4.2
type BackfillSourceConfig ¶ added in v0.4.2
type BackfillSourceConfig struct {
// contains filtered or unexported fields
}
type BlockFetcherTask ¶
type BlockFetcherTask struct {
// contains filtered or unexported fields
}
func (*BlockFetcherTask) GetName ¶ added in v0.4.0
func (t *BlockFetcherTask) GetName() string
type HeightMeta ¶
type IndexSourceConfig ¶ added in v0.4.2
type ParsedBlockData ¶
type ParsedValidatorsData ¶
type ParsedValidatorsData map[string]parsedValidator
type StakingStateFetcherTask ¶ added in v0.4.0
type StakingStateFetcherTask struct {
// contains filtered or unexported fields
}
func (*StakingStateFetcherTask) GetName ¶ added in v0.4.0
func (t *StakingStateFetcherTask) GetName() string
type StartConfig ¶ added in v0.4.2
type StateFetcherTask ¶
type StateFetcherTask struct {
// contains filtered or unexported fields
}
func (*StateFetcherTask) GetName ¶ added in v0.4.0
func (t *StateFetcherTask) GetName() string
type TransactionFetcherTask ¶
type TransactionFetcherTask struct {
// contains filtered or unexported fields
}
func (*TransactionFetcherTask) GetName ¶ added in v0.4.0
func (t *TransactionFetcherTask) GetName() string
type ValidatorFetcherTask ¶
type ValidatorFetcherTask struct {
// contains filtered or unexported fields
}
func (*ValidatorFetcherTask) GetName ¶ added in v0.4.0
func (t *ValidatorFetcherTask) GetName() string
Click to show internal directories.
Click to hide internal directories.