cron_jobs

package
v0.0.0-...-115b5aa Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KafkaConn *kafka.Conn

Functions

func DailyJobScheduler

func DailyJobScheduler()

Daily job scheduler ...

func InitKafkaConn

func InitKafkaConn()

func JobScheduler

func JobScheduler(jobs []models.Job)

Job scheduler ...

func ScheduleDailyJob

func ScheduleDailyJob()

Schedule the daily active jobs ...

func ScheduleJobOnServerStart

func ScheduleJobOnServerStart()

Server startup job scheduler ...

func SendScheduledMail

func SendScheduledMail(job models.Job) error

Send the scheduled mails ...

func SetCronJob

func SetCronJob(cronSchedulerType CronScheduler, job models.Job, fn func(job2 models.Job) error)

Ass the cron jobs before start ...

Types

type CronScheduler

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

CronScheduler ...

func GetNewCron

func GetNewCron() CronScheduler

cron constructor ...

Jump to

Keyboard shortcuts

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