Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_BLOCKS_PER_COMMIT = 1000
View Source
const DEFAULT_BLOCKS_PER_POLL = 10
View Source
const DEFAULT_CHAIN_TRACKER_POLL_INTERVAL = 300000 // 5 minutes
View Source
const DEFAULT_COMMITTER_TRIGGER_INTERVAL = 2000
View Source
const DEFAULT_FAILURES_PER_POLL = 10
View Source
const DEFAULT_FAILURE_TRIGGER_INTERVAL = 1000
View Source
const DEFAULT_REORG_HANDLER_BLOCKS_PER_SCAN = 100
View Source
const DEFAULT_REORG_HANDLER_INTERVAL = 1000
View Source
const DEFAULT_TRIGGER_INTERVAL = 1000
Variables ¶
View Source
var ErrNoNewBlocks = fmt.Errorf("no new blocks to poll")
Functions ¶
This section is empty.
Types ¶
type BlockNumberWithError ¶
type ChainTracker ¶
type ChainTracker struct {
// contains filtered or unexported fields
}
func NewChainTracker ¶
func NewChainTracker(rpc rpc.IRPCClient) *ChainTracker
func (*ChainTracker) Start ¶
func (ct *ChainTracker) Start(ctx context.Context)
type Committer ¶
type Committer struct {
// contains filtered or unexported fields
}
func NewCommitter ¶
func NewCommitter(rpc rpc.IRPCClient, storage storage.IStorage) *Committer
type FailureRecoverer ¶
type FailureRecoverer struct {
// contains filtered or unexported fields
}
func NewFailureRecoverer ¶
func NewFailureRecoverer(rpc rpc.IRPCClient, storage storage.IStorage) *FailureRecoverer
func (*FailureRecoverer) Start ¶
func (fr *FailureRecoverer) Start(ctx context.Context)
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func NewOrchestrator ¶
func NewOrchestrator(rpc rpc.IRPCClient) (*Orchestrator, error)
func (*Orchestrator) Shutdown ¶
func (o *Orchestrator) Shutdown()
func (*Orchestrator) Start ¶
func (o *Orchestrator) Start()
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
func NewBoundlessPoller ¶
func NewBoundlessPoller(rpc rpc.IRPCClient, storage storage.IStorage) *Poller
type ReorgHandler ¶
type ReorgHandler struct {
// contains filtered or unexported fields
}
func NewReorgHandler ¶
func NewReorgHandler(rpc rpc.IRPCClient, storage storage.IStorage) *ReorgHandler
func (*ReorgHandler) RunFromBlock ¶
func (*ReorgHandler) Start ¶
func (rh *ReorgHandler) Start(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.