Documentation
¶
Index ¶
- Constants
- Variables
- func NewBackfillSource(cfg *config.Config, db *store.Store, client client.Client, indexVersion int64) (*backfillSource, error)
- func NewBlockFetcherTask(client figmentclient.Client) pipeline.Task
- func NewBlockSeqCreatorTask(db *store.Store) *blockSeqCreatorTask
- func NewBlockSeqPersistorTask(db *store.Store) pipeline.Task
- func NewConfigParser(file string) (*configParser, error)
- func NewHeightMetaRetrieverTask(c figmentclient.Client) *heightMetaRetrieverTask
- func NewIndexSource(cfg *config.Config, db *store.Store, client figmentclient.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 figmentclient.Client) (*indexingPipeline, error)
- func NewSink(db *store.Store, versionNumber int64) *sink
- func NewSyncerPersistorTask(db *store.Store) pipeline.Task
- func NewValidatorAggCreatorTask(db *store.Store) *validatorAggCreatorTask
- func NewValidatorAggPersistorTask(db *store.Store) pipeline.Task
- func NewValidatorFetcherTask(client figmentclient.Client) pipeline.Task
- func NewValidatorGroupAggCreatorTask(db *store.Store) *validatorGroupAggCreatorTask
- func NewValidatorGroupAggPersistorTask(db *store.Store) pipeline.Task
- func NewValidatorGroupFetcherTask(client figmentclient.Client) pipeline.Task
- func NewValidatorGroupSeqCreatorTask(cfg *config.Config, db *store.Store) *validatorGroupSeqCreatorTask
- func NewValidatorGroupSeqPersistorTask(db *store.Store) pipeline.Task
- func NewValidatorSeqCreatorTask(cfg *config.Config, db *store.Store) *validatorSeqCreatorTask
- func NewValidatorSeqPersistorTask(db *store.Store) pipeline.Task
- func ToBlockSequence(syncable *model.Syncable, rawBlock *figmentclient.Block) (*model.BlockSeq, error)
- func ToValidatorGroupSequence(syncable *model.Syncable, rawValidatorGroups []*figmentclient.ValidatorGroup) ([]model.ValidatorGroupSeq, error)
- func ToValidatorSequence(syncable *model.Syncable, rawValidatorPerformance []*figmentclient.Validator) ([]model.ValidatorSeq, error)
- type BackfillConfig
- type BlockFetcherTask
- type ConfigParser
- type HeightMeta
- type IndexConfig
- type IndexSourceConfig
- type PipelineSyncableStore
- type ReportStore
- type RunConfig
- type ValidatorGroupsFetcherTask
- type ValidatorsFetcherTask
Constants ¶
View Source
const ( ValidatorAggCreatorTaskName = "ValidatorAggCreator" ValidatorGroupAggCreatorTaskName = "ValidatorGroupAggCreator" )
View Source
const ( TargetIndexBlockSequences = iota + 1 TargetIndexValidatorSequences TargetIndexValidatorGroupSequences TargetIndexValidatorAggregates TargetIndexValidatorGroupAggregates )
View Source
const ( TaskNameBlockFetcher = "BlockFetcher" TaskNameValidatorsFetcher = "ValidatorsFetcher" TaskNameValidatorGroupsFetcher = "ValidatorGroupsFetcher" )
View Source
const ( SyncerPersistorTaskName = "SyncerPersistor" BlockSeqPersistorTaskName = "BlockSeqPersistor" ValidatorSeqPersistorTaskName = "ValidatorSeqPersistor" ValidatorGroupSeqPersistorTaskName = "ValidatorGroupSeqPersistor" ValidatorAggPersistorTaskName = "ValidatorAggPersistor" ValidatorGroupAggPersistorTaskName = "ValidatorGroupAggPersistor" )
View Source
const ( BlockSeqCreatorTaskName = "BlockSeqCreator" ValidatorSeqCreatorTaskName = "ValidatorSeqCreator" ValidatorGroupSeqCreatorTaskName = "ValidatorGroupSeqCreator" )
View Source
const (
CtxReport = "context_report"
)
View Source
const (
MainSyncerTaskName = "MainSyncer"
)
View Source
const (
TaskNameHeightMetaRetriever = "HeightMetaRetriever"
)
Variables ¶
View Source
var ( ErrBlockSequenceNotValid = errors.New("block sequence not valid") ErrValidatorSequenceNotValid = errors.New("validator sequence not valid") ErrValidatorGroupSequenceNotValid = errors.New("validator group sequence not valid") )
View Source
var ( ErrIsPristine = errors.New("cannot run because database is empty") ErrIndexCannotBeRun = errors.New("cannot run index process") ErrBackfillCannotBeRun = errors.New("cannot run backfill process") )
View Source
var (
ErrNothingToProcess = errors.New("nothing to process")
)
Functions ¶
func NewBackfillSource ¶
func NewBlockFetcherTask ¶
func NewBlockFetcherTask(client figmentclient.Client) pipeline.Task
func NewBlockSeqCreatorTask ¶
NewBlockSeqCreatorTask creates block sequences
func NewBlockSeqPersistorTask ¶
NewBlockSeqPersistorTask is responsible for storing block to persistence layer
func NewConfigParser ¶
func NewHeightMetaRetrieverTask ¶
func NewHeightMetaRetrieverTask(c figmentclient.Client) *heightMetaRetrieverTask
func NewIndexSource ¶
func NewIndexSource(cfg *config.Config, db *store.Store, client figmentclient.Client, sourceCfg *IndexSourceConfig) (*indexSource, error)
func NewPayloadFactory ¶
func NewPayloadFactory() *payloadFactory
func NewPipeline ¶
func NewSyncerPersistorTask ¶
NewSyncerPersistorTask is responsible for storing syncable to persistence layer
func NewValidatorFetcherTask ¶
func NewValidatorFetcherTask(client figmentclient.Client) pipeline.Task
func NewValidatorGroupFetcherTask ¶
func NewValidatorGroupFetcherTask(client figmentclient.Client) pipeline.Task
func NewValidatorGroupSeqCreatorTask ¶
func NewValidatorGroupSeqCreatorTask(cfg *config.Config, db *store.Store) *validatorGroupSeqCreatorTask
NewValidatorGroupSeqCreatorTask creates validator era sequences
func NewValidatorGroupSeqPersistorTask ¶
NewValidatorGroupSeqPersistorTask is responsible for storing validator era info to persistence layer
func NewValidatorSeqCreatorTask ¶
NewValidatorSeqCreatorTask creates validator sequences
func NewValidatorSeqPersistorTask ¶
NewValidatorSeqPersistorTask is responsible for storing validator info to persistence layer
func ToBlockSequence ¶
func ToValidatorGroupSequence ¶
func ToValidatorGroupSequence(syncable *model.Syncable, rawValidatorGroups []*figmentclient.ValidatorGroup) ([]model.ValidatorGroupSeq, error)
func ToValidatorSequence ¶
func ToValidatorSequence(syncable *model.Syncable, rawValidatorPerformance []*figmentclient.Validator) ([]model.ValidatorSeq, error)
Types ¶
type BackfillConfig ¶
type BlockFetcherTask ¶
type BlockFetcherTask struct {
// contains filtered or unexported fields
}
func (*BlockFetcherTask) GetName ¶
func (t *BlockFetcherTask) GetName() string
type ConfigParser ¶
type ConfigParser interface { GetCurrentVersionId() int64 GetAllVersionedVersionIds() []int64 IsAnyVersionSequential(versionIds []int64) bool GetAllAvailableTasks() []pipeline.TaskName GetAllVersionedTasks() ([]pipeline.TaskName, error) GetTasksByVersionIds([]int64) ([]pipeline.TaskName, error) GetTasksByTargetIds([]int64) ([]pipeline.TaskName, error) }
type HeightMeta ¶
type IndexConfig ¶
type IndexSourceConfig ¶
type PipelineSyncableStore ¶
type ReportStore ¶
type ValidatorGroupsFetcherTask ¶
type ValidatorGroupsFetcherTask struct {
// contains filtered or unexported fields
}
func (*ValidatorGroupsFetcherTask) GetName ¶
func (t *ValidatorGroupsFetcherTask) GetName() string
type ValidatorsFetcherTask ¶
type ValidatorsFetcherTask struct {
// contains filtered or unexported fields
}
func (*ValidatorsFetcherTask) GetName ¶
func (t *ValidatorsFetcherTask) GetName() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.