jobs

package
v1.2.0 Latest Latest
Warning

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

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

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

func SendActivityToInbox(activity []byte, inbox string) error

TODO: Move to a proper place

func SendQuietActivityToInbox added in v1.2.0

func SendQuietActivityToInbox(activity []byte, inbox string) error

Types

This section is empty.

Directories

Path Synopsis
Package jobtype holds types for jobs and their categories.
Package jobtype holds types for jobs and their categories.

Jump to

Keyboard shortcuts

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