Documentation ¶
Overview ¶
Package taskqueue provides the functionality for receiving, handling and executing tasks. In this file are the routines for the task-structs used in the taskqueue.
Package taskqueue provides the functionality for receiving, handling and executing tasks. In this file are the routines for the taskqueue itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type QueueTask ¶
type QueueTask struct { Args []string `json:"args"` // list of arguments passed to script/application as argument in the given order Env map[string]string `json:"env"` // map containing environment variables passed to script/application ErrorMessage string `json:"error_message,omitempty"` // error message that might be created on executing the task }
A QueueTask is the task as it is enqueued in a Redis-list.
func NewQueueTask ¶
NewQueueTask returns an instance of QueueTask from the passed value.
func (QueueTask) Execute ¶
Execute executes the passed script/application with the arguments from the QueueTask object.
func (QueueTask) GetJSONString ¶
GetJSONString returns the QueueTask object as a json-encoded string
Click to show internal directories.
Click to hide internal directories.