Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobFunction ¶
JobFunction is the signature for functions that workers can call to asynchronously execute a job
type Task ¶
type Task interface { GetID() string GetJobName() string GetArgs() map[string]string GetWorkerRejectionCount() int IncrementWorkerRejectionCount() int ToJSON() ([]byte, error) }
Task is an interface to be implemented by types that represent a single asynchronous task
func NewTaskFromJSON ¶
NewTaskFromJSON returns a new Task unmarshalled from the provided []byte
Click to show internal directories.
Click to hide internal directories.