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

Method RegisterForDebug

api/schema_handler.go:55–58  ·  view source on GitHub ↗

RegisterForDebug register handlers for debug port

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

Source from the content-addressed store, hash-verified

53
54// RegisterForDebug register handlers for debug port
55func (handler *SchemaHandler) RegisterForDebug(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper) {
56 router.HandleFunc("/tables", utils.ApplyHTTPWrappers(handler.ListTables, wrappers)).Methods(http.MethodGet)
57 router.HandleFunc("/tables/{table}", utils.ApplyHTTPWrappers(handler.GetTable, wrappers)).Methods(http.MethodGet)
58}
59
60// ListTables swagger:route GET /schema/tables listTables
61// List all table schemas

Callers 2

startFunction · 0.95
startDebugServerMethod · 0.80

Calls 1

ApplyHTTPWrappersFunction · 0.92

Tested by

no test coverage detected