jobs

package
v0.0.0-...-acda5ee Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJob

func NewJob(ctx context.Context, name string, handler Handler) (string, templatesJob)

Types

type Context

type Context struct {
	context.Context
	LastSuccessfulRun *time.Time
}

type EmailSupressionJobHandler

type EmailSupressionJobHandler struct {
}

func (EmailSupressionJobHandler) Run

func (EmailSupressionJobHandler) Schedule

func (e EmailSupressionJobHandler) Schedule() string

type Handler

type Handler interface {
	Run(ctx Context) error
	Schedule() string
}

type LockExpiredTenantsJobHandler

type LockExpiredTenantsJobHandler struct {
}

func (LockExpiredTenantsJobHandler) Run

func (LockExpiredTenantsJobHandler) Schedule

func (e LockExpiredTenantsJobHandler) Schedule() string

type PurgeExpiredNotificationsJobHandler

type PurgeExpiredNotificationsJobHandler struct {
}

func (PurgeExpiredNotificationsJobHandler) Run

func (PurgeExpiredNotificationsJobHandler) Schedule

type TrialReminderJobHandler

type TrialReminderJobHandler struct {
	Days         int
	TemplateName string
}

func (TrialReminderJobHandler) Run

func (TrialReminderJobHandler) Schedule

func (e TrialReminderJobHandler) Schedule() string

Jump to

Keyboard shortcuts

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