Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueType ¶
type QueueType string
func QueueTypeFromDispatcher ¶
func QueueTypeFromDispatcher(d *db.DispatcherModel) QueueType
func QueueTypeFromTicker ¶
func QueueTypeFromTicker(t *db.TickerModel) QueueType
type Task ¶
type Task struct {
// ID is the ID of the task.
ID string `json:"id"`
// Queue is the queue of the task.
Queue QueueType `json:"queue"`
// Payload is the payload of the task.
Payload map[string]interface{} `json:"payload"`
// Metadata is the metadata of the task.
Metadata map[string]interface{} `json:"metadata"`
// Retries is the number of retries for the task.
Retries int `json:"retries"`
// RetryDelay is the delay between retries.
RetryDelay int `json:"retry_delay"`
}
Click to show internal directories.
Click to hide internal directories.