Documentation ¶
Index ¶
- Variables
- func NewBackfillUseCase(cfg *config.Config, cli *client.Client, accountDb store.Accounts, ...) *backfillUseCase
- func NewPurgeUseCase(cfg *config.Config, blockDb store.Blocks, validatorDb store.Validators) *purgeUseCase
- func NewPurgeWorkerHandler(cfg *config.Config, blockDb store.Blocks, validatorDb store.Validators) *purgeWorkerHandler
- func NewRunWorkerHandler(cfg *config.Config, cli *client.Client, accountDb store.Accounts, ...) *runWorkerHandler
- func NewStartUseCase(cfg *config.Config, cli *client.Client, accountDb store.Accounts, ...) *startUseCase
- func NewSummarizeUseCase(cfg *config.Config, blockDb store.Blocks, validatorDb store.Validators) *summarizeUseCase
- func NewSummarizeWorkerHandler(cfg *config.Config, blockDb store.Blocks, validatorDb store.Validators) *summarizeWorkerHandler
- type BackfillCmdHandler
- type BackfillUseCaseConfig
- type PurgeCmdHandler
- type StartCmdHandler
- type SummarizeCmdHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBackfillRunning = errors.New("backfill already running (use force flag to override it)")
)
View Source
var (
ErrPurgingDisabled = errors.New("purging disabled")
)
View Source
var (
ErrRunningSequentialReindex = errors.New("indexing skipped because sequential reindex hasn't finished yet")
)
Functions ¶
func NewBackfillUseCase ¶
func NewBackfillUseCase(cfg *config.Config, cli *client.Client, accountDb store.Accounts, blockDb store.Blocks, databaseDb store.Database, eventDb store.Events, reportDb store.Reports, rewardDb store.Rewards, syncableDb store.Syncables, systemEventDb store.SystemEvents, transactionDb store.Transactions, validatorDb store.Validators, ) *backfillUseCase
func NewPurgeUseCase ¶
func NewPurgeWorkerHandler ¶
func NewRunWorkerHandler ¶
func NewRunWorkerHandler(cfg *config.Config, cli *client.Client, accountDb store.Accounts, blockDb store.Blocks, databaseDb store.Database, eventDb store.Events, reportDb store.Reports, rewardDb store.Rewards, syncableDb store.Syncables, systemEventDb store.SystemEvents, transactionDb store.Transactions, validatorDb store.Validators, ) *runWorkerHandler
func NewStartUseCase ¶
func NewStartUseCase(cfg *config.Config, cli *client.Client, accountDb store.Accounts, blockDb store.Blocks, databaseDb store.Database, eventDb store.Events, reportDb store.Reports, rewardDb store.Rewards, syncableDb store.Syncables, systemEventDb store.SystemEvents, transactionDb store.Transactions, validatorDb store.Validators, ) *startUseCase
func NewSummarizeUseCase ¶
Types ¶
type BackfillCmdHandler ¶
type BackfillCmdHandler struct {
// contains filtered or unexported fields
}
func NewBackfillCmdHandler ¶
func NewBackfillCmdHandler(cfg *config.Config, cli *client.Client, accountDb store.Accounts, blockDb store.Blocks, databaseDb store.Database, eventDb store.Events, reportDb store.Reports, rewardDb store.Rewards, syncableDb store.Syncables, systemEventDb store.SystemEvents, transactionDb store.Transactions, validatorDb store.Validators, ) *BackfillCmdHandler
type BackfillUseCaseConfig ¶
type PurgeCmdHandler ¶
type PurgeCmdHandler struct {
// contains filtered or unexported fields
}
func NewPurgeCmdHandler ¶
func NewPurgeCmdHandler(cfg *config.Config, blockDb store.Blocks, validatorDb store.Validators) *PurgeCmdHandler
func (*PurgeCmdHandler) Handle ¶
func (h *PurgeCmdHandler) Handle(ctx context.Context)
type StartCmdHandler ¶
type StartCmdHandler struct {
// contains filtered or unexported fields
}
func NewStartCmdHandler ¶
func NewStartCmdHandler(cfg *config.Config, cli *client.Client, accountDb store.Accounts, blockDb store.Blocks, databaseDb store.Database, eventDb store.Events, reportDb store.Reports, rewardDb store.Rewards, syncableDb store.Syncables, systemEventDb store.SystemEvents, transactionDb store.Transactions, validatorDb store.Validators, ) *StartCmdHandler
type SummarizeCmdHandler ¶
type SummarizeCmdHandler struct {
// contains filtered or unexported fields
}
func NewSummarizeCmdHandler ¶
func NewSummarizeCmdHandler(cfg *config.Config, blockDb store.Blocks, validatorDb store.Validators) *SummarizeCmdHandler
func (*SummarizeCmdHandler) Handle ¶
func (h *SummarizeCmdHandler) Handle(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.