cron

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scheduler = initialize.Scheduler
)

Functions

func MakeJobFunc

func MakeJobFunc(f func() error) func()

func MakeOnceJob

func MakeOnceJob(key lock.Key, f func() error) func()

func PublishTask

func PublishTask(task nats.Task) func()

func PublishTaskWithMakePayload

func PublishTaskWithMakePayload[T nats.PayloadType](task nats.Task, makePayload func() (T, error)) func()

func PublishTaskWithPayload

func PublishTaskWithPayload[T nats.PayloadType](task nats.Task, payload T) func()

Types

This section is empty.

Jump to

Keyboard shortcuts

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