Documentation ¶
Index ¶
Constants ¶
View Source
const JobAPIPrefix = "/api/v1/jobs/"
JobAPIPrefix is the prefix of the job API.
View Source
const JobDetailAPIFormat = JobAPIPrefix + "%s/status"
JobDetailAPIFormat is the path format for job detail status the entire path is: /api/v1/jobs/${jobID}/status
Variables ¶
This section is empty.
Functions ¶
func SwaggerAPIv1 ¶
func SwaggerAPIv1( writer http.ResponseWriter, _ *http.Request, )
SwaggerAPIv1 serves the apiv1 swagger json file.
func SwaggerUI ¶
func SwaggerUI( writer http.ResponseWriter, _ *http.Request, )
SwaggerUI renders the swagger ui.
func WriteHTTPError ¶
func WriteHTTPError(w http.ResponseWriter, err error)
WriteHTTPError writes error to http response with normalized error format.
Types ¶
Click to show internal directories.
Click to hide internal directories.