# Functions
FlushDB deletes all the keys of the currently selected DB.
GetDeadEntries returns all task messages and its score in the dead queue.
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.
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.
# 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.
SortProcessInfoOpt is a cmp.Option to sort base.ProcessInfo 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.