jobtype

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: 1 Imported by: 0

Documentation

Overview

Package jobtype holds types for jobs and their categories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	// ID is a unique identifier for the Job. You get it when reading from the database. Do not set it when issuing a new job.
	ID       int64
	Category JobCategory
	Due      time.Time
	// Payload is some data.
	Payload any
}

Job is a task for Betula to do later.

type JobCategory

type JobCategory string
const (
	SendAnnounce        JobCategory = "notify about my repost"
	ReceiveAnnounce     JobCategory = "verify their repost"
	ReceiveUndoAnnounce JobCategory = "receive unrepost"
	SendUndoAnnounce    JobCategory = "notify about my unrepost"

	SendAcceptFollow    JobCategory = "Send Accept{Follow}"
	SendRejectFollow    JobCategory = "Send Reject{Follow}"
	ReceiveAcceptFollow JobCategory = "Receive Accept{Follow}"
	ReceiveRejectFollow JobCategory = "Receive Reject{Follow}"
	SendCreateNote      JobCategory = "Send Create{Note}"
	SendUpdateNote      JobCategory = "Send Update{Note}"
	SendDeleteNote      JobCategory = "Send Delete{Note}"
)

Jump to

Keyboard shortcuts

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