MCPcopy
hub / github.com/vulcand/vulcand / GetBackend

Method GetBackend

api/client.go:157–163  ·  view source on GitHub ↗
(bk engine.BackendKey)

Source from the content-addressed store, hash-verified

155}
156
157func (c *Client) GetBackend(bk engine.BackendKey) (*engine.Backend, error) {
158 response, err := c.Get(c.endpoint("backends", bk.Id), url.Values{})
159 if err != nil {
160 return nil, err
161 }
162 return engine.BackendFromJSON(response)
163}
164
165func (c *Client) GetBackends() ([]engine.Backend, error) {
166 data, err := c.Get(c.endpoint("backends"), url.Values{})

Callers

nothing calls this directly

Calls 3

GetMethod · 0.95
endpointMethod · 0.95
BackendFromJSONFunction · 0.92

Tested by

no test coverage detected