cronjob

package
v0.0.0-...-063dafe Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CronJobRunner *cron.Cron

Functions

func AddNewJob

func AddNewJob(
	user domain.User,
	period string,
	massage string,
	senderNumber string,
	receiverNumbers string,
	repetitionCount uint,
	smsS usecase.SMSService,
) (int, error)

func NewCronJobRunner

func NewCronJobRunner()

Types

type JobWithRepetitions

type JobWithRepetitions struct {
	EntryID      cron.EntryID
	Job          cron.Job
	Repetitions  uint
	Counter      uint
	StopOnFinish bool
}

func (*JobWithRepetitions) Run

func (j *JobWithRepetitions) Run()

Jump to

Keyboard shortcuts

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