expirynotify

package
v5.35.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: AGPL-3.0, Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const (
	JobName = "ExpiryNotify"
)
View Source
const (
	SchedFreqMinutes = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpiryNotifyJobInterfaceImpl

type ExpiryNotifyJobInterfaceImpl struct {
	App *app.App
}

func (*ExpiryNotifyJobInterfaceImpl) MakeScheduler

func (m *ExpiryNotifyJobInterfaceImpl) MakeScheduler() model.Scheduler

func (*ExpiryNotifyJobInterfaceImpl) MakeWorker

func (m *ExpiryNotifyJobInterfaceImpl) MakeWorker() model.Worker

type Scheduler

type Scheduler struct {
	App *app.App
}

func (*Scheduler) Enabled

func (scheduler *Scheduler) Enabled(cfg *model.Config) bool

func (*Scheduler) JobType

func (scheduler *Scheduler) JobType() string

func (*Scheduler) Name

func (scheduler *Scheduler) Name() string

func (*Scheduler) NextScheduleTime

func (scheduler *Scheduler) NextScheduleTime(cfg *model.Config, now time.Time, pendingJobs bool, lastSuccessfulJob *model.Job) *time.Time

func (*Scheduler) ScheduleJob

func (scheduler *Scheduler) ScheduleJob(cfg *model.Config, pendingJobs bool, lastSuccessfulJob *model.Job) (*model.Job, *model.AppError)

type Worker

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

func (*Worker) DoJob

func (worker *Worker) DoJob(job *model.Job)

func (*Worker) JobChannel

func (worker *Worker) JobChannel() chan<- model.Job

func (*Worker) Run

func (worker *Worker) Run()

func (*Worker) Stop

func (worker *Worker) Stop()

Jump to

Keyboard shortcuts

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