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

Method GetSchemaHash

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

Source from the content-addressed store, hash-verified

121}
122
123func (c *ControllerHTTPClient) GetSchemaHash(namespace string) (hash string, err error) {
124 request, err := c.buildRequest(http.MethodGet, fmt.Sprintf("/schema/%s/hash", namespace), nil)
125 if err != nil {
126 return
127 }
128 bytes, err := c.getResponse(request)
129 if err != nil {
130 err = utils.StackError(err, "controller client error fetching hash")
131 return
132 }
133
134 hash = string(bytes)
135 return
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)

Callers

nothing calls this directly

Calls 3

buildRequestMethod · 0.95
getResponseMethod · 0.95
StackErrorFunction · 0.92

Tested by

no test coverage detected