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

Function NewJSONQueryResponseWriter

api/query_handler.go:317–324  ·  view source on GitHub ↗

NewJSONQueryResponseWriter creates a new JSONQueryResponseWriter.

(nQueries int)

Source from the content-addressed store, hash-verified

315
316// NewJSONQueryResponseWriter creates a new JSONQueryResponseWriter.
317func NewJSONQueryResponseWriter(nQueries int) QueryResponseWriter {
318 return &JSONQueryResponseWriter{
319 response: queryCom.AQLResponse{
320 Results: make([]queryCom.AQLQueryResult, nQueries),
321 },
322 statusCode: http.StatusOK,
323 }
324}
325
326// ReportError writes the error of the query to the response.
327func (w *JSONQueryResponseWriter) ReportError(queryIndex int, table string, err error, statusCode int) {

Callers 2

getReponseWriterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected