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}" )
Click to show internal directories.
Click to hide internal directories.