Documentation
¶
Overview ¶
Package blaze integrates the mgojq package to handle asynchronous jobs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JobController ¶
JobController will return a basic controller that provides access to the jobs. At least one authorizer should be provided that restricts access to administrators.
Types ¶
type Job ¶
type Job struct {
coal.Base `json:"-" bson:",inline" coal:"jobs"`
Name string `json:"name"`
Params bson.M `json:"params"`
Status string `json:"status"`
Created time.Time `json:"created"`
Delayed time.Time `json:"delayed" bson:",omitempty"`
Started time.Time `json:"started" bson:",omitempty"`
Ended time.Time `json:"ended" bson:",omitempty"`
Attempts int `json:"attempts"`
Result bson.M `json:"result" bson:",omitempty"`
Error string `json:"error" bson:",omitempty"`
Reason string `json:"reason" bson:",omitempty"`
}
Job is the coal model for the mgojq.Job type.
Click to show internal directories.
Click to hide internal directories.