MCPcopy
hub / github.com/CodisLabs/codis / Slots

Method Slots

pkg/proxy/proxy_api.go:296–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

294}
295
296func (c *ApiClient) Slots() ([]*models.Slot, error) {
297 url := c.encodeURL("/api/proxy/slots/%s", c.xauth)
298 slots := []*models.Slot{}
299 if err := rpc.ApiGetJson(url, &slots); err != nil {
300 return nil, err
301 }
302 return slots, nil
303}
304
305func (c *ApiClient) ResetStats() error {
306 url := c.encodeURL("/api/proxy/stats/reset/%s", c.xauth)

Callers

nothing calls this directly

Calls 1

encodeURLMethod · 0.95

Tested by

no test coverage detected