job

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupJob

type BackupJob struct {
	ScheduledJob

	BackupSetID uint
}

func (*BackupJob) Execute

func (b *BackupJob) Execute() error

type BaseJob

type BaseJob struct {
	Scheduler *scheduler.Scheduler
	// contains filtered or unexported fields
}

func (*BaseJob) Execute

func (j *BaseJob) Execute() error

func (*BaseJob) Key

func (j *BaseJob) Key() string

type BasePeriodicalJob

type BasePeriodicalJob struct {
	BaseJob
	Cron string
}

func (*BasePeriodicalJob) SetNextFireTime

func (pj *BasePeriodicalJob) SetNextFireTime()

func (*BasePeriodicalJob) ShouldStart

func (pj *BasePeriodicalJob) ShouldStart() bool

type ScheduledJob

type ScheduledJob struct {
	BaseJob
	ID           uint
	JobType      string
	ResourceID   uint
	ResourceType string
	Args         []byte
}

type Scheduler

type Scheduler struct {
	BasePeriodicalJob
}

func NewJobScheduler

func NewJobScheduler(sch *scheduler.Scheduler, cron string) *Scheduler

func (*Scheduler) Execute

func (jsch *Scheduler) Execute() error

Jump to

Keyboard shortcuts

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