Documentation ¶
Overview ¶
Package jobs handles behind-the-scenes scheduled stuff.
It makes sense to call all functions here in a separate goroutine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndWhisper ¶
func ListenAndWhisper()
func ScheduleDatum ¶ added in v1.2.0
func ScheduleDatum(category jobtype.JobCategory, data any)
ScheduleDatum schedules a job with the given category and data of any type, which will be saved as is.
TODO: get rid of it.
func ScheduleJSON ¶ added in v1.2.0
func ScheduleJSON(category jobtype.JobCategory, dataJSON any)
ScheduleJSON schedules a job with the given category and data, which will be marshaled into JSON before saving to database. This is the one you should use, unlike ScheduleDatum.
func SendActivityToInbox ¶ added in v1.2.0
TODO: Move to a proper place
func SendQuietActivityToInbox ¶ added in v1.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.