job

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateJobInstances

func CalculateJobInstances(Schedule string, startDate, endDate time.Time) []time.Time

Types

type Job

type Job struct {
	ID        int
	Name      string
	Schedule  string
	StartDate time.Time
	EndDate   time.Time
	Function  func()
}

type JobExecutor

type JobExecutor struct {
	Cron      *cron.Cron
	Jobs      map[int]Job
	JobRunLog map[int][]time.Time
}

func NewJobExecutor

func NewJobExecutor() *JobExecutor

func (*JobExecutor) RegisterJob

func (je *JobExecutor) RegisterJob(job Job)

Jump to

Keyboard shortcuts

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