scheduler

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

func New

func New(db *database.DB, registry *sources.Registry, dl *downloader.Downloader, hooks *hooks.Manager) *Scheduler

func (*Scheduler) GetNextRun

func (s *Scheduler) GetNextRun(productID string) *time.Time

func (*Scheduler) ScheduleProduct

func (s *Scheduler) ScheduleProduct(product *database.Product) error

func (*Scheduler) Stop

func (s *Scheduler) Stop()

func (*Scheduler) SyncNow

func (s *Scheduler) SyncNow(_ context.Context, productID string) error

func (*Scheduler) UnscheduleProduct

func (s *Scheduler) UnscheduleProduct(productID string)

Jump to

Keyboard shortcuts

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