Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBackgroundTasks ¶
AddBackgroundTasks adds service to the DI container
func AddCounterTaskConsumer ¶
AddCounterTaskConsumer adds service to the DI container
Types ¶
type IBackgroundTasks ¶
type IBackgroundTasks interface { }
func GetBackgroundTasksFromContainer ¶
func GetBackgroundTasksFromContainer(ctn di.Container) IBackgroundTasks
type IJobsProvider ¶ added in v0.1.23
type IJobsProvider interface { GetScheduledJobs() []*ScheduledJob GetOneTimeJobs() []*OneTimeJob }
type OneTimeJob ¶ added in v0.1.23
type ReminderEmails ¶ added in v0.1.23
type ReminderEmails struct { }
func (ReminderEmails) Run ¶ added in v0.1.23
func (e ReminderEmails) Run()
ReminderEmails.Run() will get triggered automatically.
type ScheduledJob ¶ added in v0.1.23
type ScheduledJob struct { // Job must support Run() func Job cron.Job // Schedule "* */5 * * * *","@every 1h30m10s","@midnight" Schedule string }
ScheduledJob cron
Click to show internal directories.
Click to hide internal directories.