MCPcopy
hub / github.com/uber/aresdb / getJSONResponse

Method getJSONResponse

controller/client/controller.go:113–121  ·  view source on GitHub ↗
(request *http.Request, output interface{})

Source from the content-addressed store, hash-verified

111}
112
113func (c *ControllerHTTPClient) getJSONResponse(request *http.Request, output interface{}) error {
114 bytes, err := c.getResponse(request)
115 if err != nil {
116 return err
117 }
118
119 err = json.Unmarshal(bytes, output)
120 return err
121}
122
123func (c *ControllerHTTPClient) GetSchemaHash(namespace string) (hash string, err error) {
124 request, err := c.buildRequest(http.MethodGet, fmt.Sprintf("/schema/%s/hash", namespace), nil)

Callers 6

GetAllSchemaMethod · 0.95
GetNamespacesMethod · 0.95
GetAssignmentMethod · 0.95
FetchSchemaMethod · 0.95
FetchAllEnumsMethod · 0.95
ExtendEnumCasesMethod · 0.95

Calls 1

getResponseMethod · 0.95

Tested by

no test coverage detected