Documentation
¶
Index ¶
Constants ¶
const ( CTXJob = "job" CTXUser = "user" CTXJobID = "job_id" )
Keys for credential releated items stored in the Gin Context
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶ added in v0.0.3
Cancel cancels the pending job. The response status code will be 202 if successful, or 405 if the job cannot be canceled.
func CancelInfo ¶ added in v0.0.3
CancelInfo to determine if the job can be cancelled. The response will include the following field: can_cancel: [boolean] Indicates whether this job can be canceled
func GetJobs ¶
GetJobs is a Gin handler function which returns list of jobs This takes lookup parameters and order parameters to filter and sort output data
func Middleware ¶
Middleware generates a middleware handler function that works inside of a Gin request. This function takes CTXJobID from Gin Context and retrives credential data from the collection and store credential data under key CTXJob in Gin Context
Types ¶
This section is empty.