scheduler

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckUpdatesJob

type CheckUpdatesJob struct {
	Name     string
	Log      zerolog.Logger
	Version  string
	NotifSvc notification.Service
	// contains filtered or unexported fields
}

func (*CheckUpdatesJob) Run

func (j *CheckUpdatesJob) Run()

type GenericJob

type GenericJob struct {
	Name string
	Log  zerolog.Logger
	// contains filtered or unexported fields
}

func (*GenericJob) Run

func (j *GenericJob) Run()

type Service

type Service interface {
	Start()
	Stop()
	ScheduleJob(job cron.Job, interval time.Duration, identifier string) (int, error)
	AddJob(job cron.Job, spec string, identifier string) (int, error)
	RemoveJobByIdentifier(id string) error
	GetNextRun(id string) (time.Time, error)
}

func NewService

func NewService(log logger.Logger, config *domain.Config, notificationSvc notification.Service, updateSvc *update.Service) Service

Jump to

Keyboard shortcuts

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