MCPcopy
hub / github.com/dgraph-io/dgraph / memoryLimitHandler

Function memoryLimitHandler

dgraph/cmd/alpha/admin.go:150–157  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

148}
149
150func memoryLimitHandler(w http.ResponseWriter, r *http.Request) {
151 switch r.Method {
152 case http.MethodGet:
153 memoryLimitGetHandler(w, r)
154 case http.MethodPut:
155 memoryLimitPutHandler(w, r)
156 }
157}
158
159func memoryLimitPutHandler(w http.ResponseWriter, r *http.Request) {
160 body, err := io.ReadAll(r.Body)

Callers

nothing calls this directly

Calls 2

memoryLimitGetHandlerFunction · 0.85
memoryLimitPutHandlerFunction · 0.85

Tested by

no test coverage detected