(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper)
| 41 | } |
| 42 | |
| 43 | func (handler *QueryHandler) Register(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper) { |
| 44 | router.HandleFunc("/sql", utils.ApplyHTTPWrappers(handler.HandleSQL, wrappers)).Methods(http.MethodPost) |
| 45 | router.HandleFunc("/aql", utils.ApplyHTTPWrappers(handler.HandleAQL, wrappers)).Methods(http.MethodPost) |
| 46 | } |
| 47 | |
| 48 | func (handler *QueryHandler) HandleSQL(w http.ResponseWriter, r *http.Request) { |
| 49 | utils.GetRootReporter().GetCounter(utils.SQLQueryReceivedBroker).Inc(1) |
no test coverage detected