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

Method Register

api/query_handler.go:56–59  ·  view source on GitHub ↗

Register registers http handlers.

(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper)

Source from the content-addressed store, hash-verified

54
55// Register registers http handlers.
56func (handler *QueryHandler) Register(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper) {
57 router.HandleFunc("/aql", utils.ApplyHTTPWrappers(handler.HandleAQL, wrappers)).Methods(http.MethodGet, http.MethodPost)
58 router.HandleFunc("/sql", utils.ApplyHTTPWrappers(handler.HandleSQL, wrappers)).Methods(http.MethodGet, http.MethodPost)
59}
60
61// HandleAQL swagger:route POST /query/aql queryAQL
62// query in AQL

Callers

nothing calls this directly

Calls 1

ApplyHTTPWrappersFunction · 0.92

Tested by

no test coverage detected