Documentation
¶
Overview ¶
Package queue_mongo provides a queue storage backed by MongoDB
Index ¶
Constants ¶
View Source
const CollectionLog = "QueueErrors"
CollectionLog is the name of the mongodb collection where completed/logged tasks are stored
View Source
const CollectionQueue = "Queue"
CollectionQueue is the name of the mongodb collection where queued tasks are stored
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage implements a queue Storage interface using MongoDB
func (Storage) DeleteTask ¶
DeleteTask removes a task from the queue
func (Storage) DeleteTaskBySignature ¶ added in v0.4.1
DeleteTaskBySignature removes a task from the queue by its signature
func (Storage) LogFailure ¶
LogFailure adds a task to the error log
Click to show internal directories.
Click to hide internal directories.