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

Method GetAllSchema

controller/client/controller.go:138–150  ·  view source on GitHub ↗
(namespace string)

Source from the content-addressed store, hash-verified

136}
137
138func (c *ControllerHTTPClient) GetAllSchema(namespace string) (tables []metaCom.Table, err error) {
139 request, err := c.buildRequest(http.MethodGet, fmt.Sprintf("/schema/%s/tables", namespace), nil)
140 if err != nil {
141 return
142 }
143 err = c.getJSONResponse(request, &tables)
144 if err != nil {
145 err = utils.StackError(err, "controller client error fetching schema")
146 return
147 }
148
149 return
150}
151
152func (c *ControllerHTTPClient) GetNamespaces() (namespaces []string, err error) {
153 request, err := c.buildRequest(http.MethodGet, "/namespaces", nil)

Callers 1

FetchAllSchemasMethod · 0.95

Calls 3

buildRequestMethod · 0.95
getJSONResponseMethod · 0.95
StackErrorFunction · 0.92

Tested by

no test coverage detected