Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶
Cancel cancels the pending job. The response status code will be 202 if successful, or 405 if the job cannot be canceled.
func CancelInfo ¶
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 GetJob ¶
GetJob renders the Job as JSON make sure to set this handler next to JobMiddleware handler
func Middleware ¶
JobMiddleware is the middleware for job. Which takes _CTX_JOB_ID parameter form the request, fetches the Job and set it under key _CTX_JOB in gin.Context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.