backgroundtasks

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBackgroundTasks

func AddBackgroundTasks(builder *di.Builder)

AddBackgroundTasks adds service to the DI container

func AddCounterTaskConsumer

func AddCounterTaskConsumer(builder *di.Builder)

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 OneTimeJob struct {
	// Job must support Run() func
	Job   cron.Job
	Delay time.Duration
}

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

Jump to

Keyboard shortcuts

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