jobs

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Configuration          configuration.Configuration
	ExchangeRatesUpdateSvc ExchangeRatesUpdateSvc
	MaintenanceSvc         MaintenanceSvc
	Opts                   []gocron.SchedulerOption
}

type ExchangeRatesUpdateSvc

type ExchangeRatesUpdateSvc interface {
	Sync(
		ctx context.Context,
		remoteURL string,
	) error
}

type JobScheduler

type JobScheduler struct {
	// contains filtered or unexported fields
}

func NewJobScheduler

func NewJobScheduler(cfg *Config) (*JobScheduler, error)

func (*JobScheduler) FixDailyGap

func (j *JobScheduler) FixDailyGap(ctx context.Context) error

func (*JobScheduler) GetScheduler

func (j *JobScheduler) GetScheduler() gocron.Scheduler

func (*JobScheduler) StartAsync

func (j *JobScheduler) StartAsync() error

func (*JobScheduler) Stop

func (j *JobScheduler) Stop() error

func (*JobScheduler) UpdateCurrencyRates

func (j *JobScheduler) UpdateCurrencyRates(ctx context.Context) error

type MaintenanceSvc

type MaintenanceSvc interface {
	FixDailyGaps(
		ctx context.Context,
	) error
}

Jump to

Keyboard shortcuts

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