MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / resolveWithAdminServer

Function resolveWithAdminServer

dgraph/cmd/alpha/http.go:731–741  ·  view source on GitHub ↗
(gqlReq *schema.Request, r *http.Request,
	adminServer admin.IServeGraphQL)

Source from the content-addressed store, hash-verified

729}
730
731func resolveWithAdminServer(gqlReq *schema.Request, r *http.Request,
732 adminServer admin.IServeGraphQL) *schema.Response {
733 md := metadata.New(nil)
734 ctx := metadata.NewIncomingContext(context.Background(), md)
735 ctx = x.AttachAccessJwt(ctx, r)
736 ctx = x.AttachRemoteIP(ctx, r)
737 ctx = x.AttachAuthToken(ctx, r)
738 ctx = x.AttachJWTNamespace(ctx)
739
740 return adminServer.ResolveWithNs(ctx, x.RootNamespace, gqlReq)
741}
742
743func writeSuccessResponse(w http.ResponseWriter, r *http.Request) {
744 res := map[string]interface{}{}

Callers 5

adminSchemaHandlerFunction · 0.85
drainingHandlerFunction · 0.85
shutDownHandlerFunction · 0.85
memoryLimitPutHandlerFunction · 0.85
memoryLimitGetHandlerFunction · 0.85

Calls 5

AttachAccessJwtFunction · 0.92
AttachRemoteIPFunction · 0.92
AttachAuthTokenFunction · 0.92
AttachJWTNamespaceFunction · 0.92
ResolveWithNsMethod · 0.65

Tested by

no test coverage detected