jobs

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

func Cancel(c *gin.Context)

Cancel cancels the pending job. The response status code will be 202 if successful, or 405 if the job cannot be canceled.

func CancelInfo

func CancelInfo(c *gin.Context)

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

func GetJob(c *gin.Context)

GetJob renders the Job as JSON make sure to set this handler next to JobMiddleware handler

func GetJobs

func GetJobs(c *gin.Context)

GetJobs renders the Job as JSON

func Middleware

func Middleware(c *gin.Context)

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

func StdOut

func StdOut(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL