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

Method Register

broker/handler.go:43–46  ·  view source on GitHub ↗
(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper)

Source from the content-addressed store, hash-verified

41}
42
43func (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
48func (handler *QueryHandler) HandleSQL(w http.ResponseWriter, r *http.Request) {
49 utils.GetRootReporter().GetCounter(utils.SQLQueryReceivedBroker).Inc(1)

Callers 5

startFunction · 0.95
startFunction · 0.95
NewDataNodeFunction · 0.45
startDebugServerMethod · 0.45
ServeMethod · 0.45

Calls 1

ApplyHTTPWrappersFunction · 0.92

Tested by

no test coverage detected