MCPcopy
hub / github.com/vulcand/vulcand / GetBackends

Method GetBackends

api/client.go:165–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163}
164
165func (c *Client) GetBackends() ([]engine.Backend, error) {
166 data, err := c.Get(c.endpoint("backends"), url.Values{})
167 if err != nil {
168 return nil, err
169 }
170 return engine.BackendsFromJSON(data)
171}
172
173func (c *Client) UpsertServer(bk engine.BackendKey, srv engine.Server, ttl time.Duration) error {
174 if bk.Id == "" || srv.Id == "" {

Callers

nothing calls this directly

Calls 3

GetMethod · 0.95
endpointMethod · 0.95
BackendsFromJSONFunction · 0.92

Tested by

no test coverage detected