Documentation ¶
Index ¶
- Variables
- func MakeJobFunc(f func() error) func()
- func MakeOnceJob(key lock.Key, f func() error) func()
- func PublishTask(task nats.Task) func()
- func PublishTaskWithMakePayload[T nats.PayloadType](task nats.Task, makePayload func() (T, error)) func()
- func PublishTaskWithPayload[T nats.PayloadType](task nats.Task, payload T) func()
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Scheduler = initialize.Scheduler
)
Functions ¶
func MakeJobFunc ¶
func MakeJobFunc(f func() error) func()
func MakeOnceJob ¶
func PublishTask ¶
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.
Click to show internal directories.
Click to hide internal directories.