MCPcopy Index your code
hub / github.com/NVIDIA/aistore / ProxyGetHandler

Function ProxyGetHandler

dsort/handler.go:120–134  ·  view source on GitHub ↗

GET /v1/sort

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

118
119// GET /v1/sort
120func ProxyGetHandler(w http.ResponseWriter, r *http.Request) {
121 if !checkHTTPMethod(w, r, http.MethodGet) {
122 return
123 }
124
125 query := r.URL.Query()
126 managerUUID := query.Get(apc.QparamUUID)
127
128 if managerUUID == "" {
129 proxyListSortHandler(w, r)
130 return
131 }
132
133 proxyMetricsSortHandler(w, r)
134}
135
136// GET /v1/sort?regex=...
137func proxyListSortHandler(w http.ResponseWriter, r *http.Request) {

Callers 1

dsortHandlerMethod · 0.92

Calls 4

checkHTTPMethodFunction · 0.85
proxyListSortHandlerFunction · 0.85
proxyMetricsSortHandlerFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected