MCPcopy Index your code
hub / github.com/uber/aresdb / ReportResult

Method ReportResult

api/query_handler.go:348–354  ·  view source on GitHub ↗

ReportResult writes the query result to the response.

(queryIndex int, qc *query.AQLQueryContext)

Source from the content-addressed store, hash-verified

346
347// ReportResult writes the query result to the response.
348func (w *JSONQueryResponseWriter) ReportResult(queryIndex int, qc *query.AQLQueryContext) {
349 qc.Postprocess()
350 if qc.Error != nil {
351 w.ReportError(queryIndex, qc.Query.Table, qc.Error, http.StatusInternalServerError)
352 }
353 w.response.Results[queryIndex] = qc.Results
354}
355
356// Respond writes the final response into ResponseWriter.
357func (w *JSONQueryResponseWriter) Respond(rw http.ResponseWriter) {

Callers

nothing calls this directly

Calls 2

ReportErrorMethod · 0.95
PostprocessMethod · 0.80

Tested by

no test coverage detected