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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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