Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskQueue ¶
type TaskQueue struct {
// contains filtered or unexported fields
}
func NewTaskQueue ¶
NewTaskQueue returns a new TaskQueue instance configured to use the specified database connection for persistent task storage. Tasks are polled and dispatched at an interval determined by the `tick` parameter. Tasks which have not been acked after `timeout` are assumed to be blocked and will be retried.
func (*TaskQueue) QueueTaskWithDelay ¶
QueueTaskWithDelay queues a new task on the named queue to be run after a specified interval.
func (*TaskQueue) RegisterHandler ¶
RegisterHandler adds a new handler for the named queue. The handler is invoked when a task is dequeued from the named queue. If a previous handler was registered for the named queue, it will be replaced.
Click to show internal directories.
Click to hide internal directories.