Documentation ¶
Index ¶
Constants ¶
View Source
const CollectionLog = "Log"
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) LogFailure ¶
LogFailure adds a task to the error log
Click to show internal directories.
Click to hide internal directories.