NewHLLQueryResponseWriter creates a new HLLQueryResponseWriter.
()
| 372 | |
| 373 | // NewHLLQueryResponseWriter creates a new HLLQueryResponseWriter. |
| 374 | func NewHLLQueryResponseWriter() QueryResponseWriter { |
| 375 | w := HLLQueryResponseWriter{ |
| 376 | response: queryCom.NewHLLQueryResults(), |
| 377 | statusCode: http.StatusOK, |
| 378 | } |
| 379 | return &w |
| 380 | } |
| 381 | |
| 382 | // ReportError writes the error of the query to the response. |
| 383 | func (w *HLLQueryResponseWriter) ReportError(queryIndex int, table string, err error, statusCode int) { |
no outgoing calls
no test coverage detected