# Functions
FlushDB deletes all the keys of the currently selected DB.
GetDeadEntries returns all task messages and its score in the dead queue.
GetDeadlinesEntries returns all task messages and its score in the deadlines set.
GetDeadMessages returns all task messages in the dead queue.
GetEnqueuedMessages returns all task messages in the specified queue.
GetInProgressMessages returns all task messages in the in-progress queue.
GetRetryEntries returns all task messages and its score in the retry queue.
GetRetryMessages returns all task messages in the retry queue.
GetScheduledEntries returns all task messages and its score in the scheduled queue.
GetScheduledMessages returns all task messages in the scheduled queue.
MustMarshal marshals given task message and returns a json string.
MustMarshalSlice marshals a slice of task messages and return a slice of json strings.
MustUnmarshal unmarshals given string into task message struct.
MustUnmarshalSlice unmarshals a slice of strings into a slice of task message structs.
NewTaskMessage returns a new instance of TaskMessage given a task type and payload.
NewTaskMessageWithQueue returns a new instance of TaskMessage given a task type, payload and queue name.
SeedAllEnqueuedQueues initializes all of the specified queues with the given messages.
SeedDeadlines initializes the deadlines set with the given entries.
SeedDeadQueue initializes the dead queue with the given messages.
SeedEnqueuedQueue initializes the specified queue with the given messages.
SeedInProgressQueue initializes the in-progress queue with the given messages.
SeedRetryQueue initializes the retry queue with the given messages.
SeedScheduledQueue initializes the scheduled queue with the given messages.
TaskMessageAfterRetry returns an updated copy of t after retry.
TaskMessageWithError returns an updated copy of t with the given error message.
# Variables
IgnoreIDOpt is an cmp.Option to ignore ID field in task messages when comparing.
SortMsgOpt is a cmp.Option to sort base.TaskMessage for comparing slice of task messages.
SortServerInfoOpt is a cmp.Option to sort base.ServerInfo for comparing slice of process info.
SortStringSliceOpt is a cmp.Option to sort string slice.
SortWorkerInfoOpt is a cmp.Option to sort base.WorkerInfo for comparing slice of worker info.
SortZSetEntryOpt is an cmp.Option to sort ZSetEntry for comparing slice of zset entries.