MCPcopy Index your code
hub / github.com/cortexlabs/cortex / getRequiredQueryParam

Function getRequiredQueryParam

pkg/operator/endpoints/params.go:34–40  ·  view source on GitHub ↗
(paramName string, r *http.Request)

Source from the content-addressed store, hash-verified

32}
33
34func getRequiredQueryParam(paramName string, r *http.Request) (string, error) {
35 param := r.URL.Query().Get(paramName)
36 if param == "" {
37 return "", ErrorQueryParamRequired(paramName)
38 }
39 return param, nil
40}
41
42func getOptionalQParam(paramName string, r *http.Request) string {
43 return r.URL.Query().Get(paramName)

Callers 7

StopTaskJobFunction · 0.85
GetTaskJobFunction · 0.85
StopBatchJobFunction · 0.85
ReadJobLogsFunction · 0.85
GetJobLogURLFunction · 0.85
GetBatchJobFunction · 0.85
DeployFunction · 0.85

Calls 1

ErrorQueryParamRequiredFunction · 0.85

Tested by

no test coverage detected