Documentation ¶
Index ¶
- Variables
- func AddBackgroundTasks(builder *di.Builder)
- func GetBackgroundTasksFromContainer(ctn di.Container) backgroundtasksContracts.IBackgroundTasks
- func NewOneTimeJob(job cron.Job, delay time.Duration) *backgroundtasksContracts.OneTimeJob
- func NewOneTimeJobs(jobs ...*backgroundtasksContracts.OneTimeJob) backgroundtasksContracts.OneTimeJobs
- func NewScheduledJob(job cron.Job, schedule string) *backgroundtasksContracts.ScheduledJob
- func NewScheduledJobs(jobs ...*backgroundtasksContracts.ScheduledJob) backgroundtasksContracts.ScheduledJobs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TypeIBackgroundTasks = di.GetInterfaceReflectType((*backgroundtasksContracts.IBackgroundTasks)(nil)) TypeIJobsProvider = di.GetInterfaceReflectType((*backgroundtasksContracts.IJobsProvider)(nil)) )
Functions ¶
func AddBackgroundTasks ¶
AddBackgroundTasks adds service to the DI container
func GetBackgroundTasksFromContainer ¶
func GetBackgroundTasksFromContainer(ctn di.Container) backgroundtasksContracts.IBackgroundTasks
func NewOneTimeJob ¶
func NewOneTimeJob(job cron.Job, delay time.Duration) *backgroundtasksContracts.OneTimeJob
func NewOneTimeJobs ¶
func NewOneTimeJobs(jobs ...*backgroundtasksContracts.OneTimeJob) backgroundtasksContracts.OneTimeJobs
func NewScheduledJob ¶
func NewScheduledJob(job cron.Job, schedule string) *backgroundtasksContracts.ScheduledJob
func NewScheduledJobs ¶
func NewScheduledJobs(jobs ...*backgroundtasksContracts.ScheduledJob) backgroundtasksContracts.ScheduledJobs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.