cron

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 8 Imported by: 0

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 NewChainCacheJob(ca *cache.Cache, cl *pushcore.Client, interval, perSyncTimeout time.Duration, logger zerolog.Logger) *ChainCacheJob

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL