Documentation ¶
Index ¶
- func NewQueue(client Client, namespace string) TaskQueue
- func NewQueueWithDelta(client Client, namespace string, delta time.Duration) TaskQueue
- func NewTask(namespace string) *task
- func NewTaskWithPriority(namespace string, priority int) *task
- func NewTaskWithPriorityAndExpiresAt(namespace string, priority int, expires_at time.Time) *task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQueue ¶
func NewQueue(client Client, namespace string) TaskQueue
Create a new queue with the given namespace
func NewQueueWithDelta ¶
Create a new queue with the given namespace
func NewTask ¶
func NewTask(namespace string) *task
NewTask creates a new task with the given namespace, priority, and when the task should expire. The task is scheduled to run immediately.
func NewTaskWithPriority ¶
NewTaskWithPriority creates a new task with the given namespace and priority
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.