Documentation
¶
Overview ¶
cron/chain_cache_job.go
cron/chain_cache_job.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainCacheJob ¶
type ChainCacheJob struct {
// contains filtered or unexported fields
}
func NewChainCacheJob ¶
func (*ChainCacheJob) Start ¶
func (j *ChainCacheJob) Start(ctx context.Context) error
Start launches the background loop and returns immediately (non-blocking). Safe to call multiple times; subsequent calls are no-ops.
func (*ChainCacheJob) Stop ¶
func (j *ChainCacheJob) Stop()
Stop signals the loop to exit and waits for it to finish. Safe to call multiple times.
type ChainRegistryJob ¶
type ChainRegistryJob struct {
// contains filtered or unexported fields
}
func NewChainRegistryJob ¶
func NewChainRegistryJob(ca *cache.Cache, cr *chains.ChainRegistry, interval, perSyncTimeout time.Duration, logger zerolog.Logger) *ChainRegistryJob
func (*ChainRegistryJob) Start ¶
func (j *ChainRegistryJob) Start(ctx context.Context) error
Start launches the background loop and returns immediately (non-blocking). Safe to call multiple times; subsequent calls are no-ops.
func (*ChainRegistryJob) Stop ¶
func (j *ChainRegistryJob) Stop()
Stop signals the loop to exit and waits for it to finish. Safe to call multiple times.
Click to show internal directories.
Click to hide internal directories.