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

Method Stats

pkg/proxy/proxy_api.go:287–294  ·  view source on GitHub ↗
(flags StatsFlags)

Source from the content-addressed store, hash-verified

285}
286
287func (c *ApiClient) Stats(flags StatsFlags) (*Stats, error) {
288 url := c.encodeURL("/api/proxy/stats/%s/%d", c.xauth, flags)
289 stats := &Stats{}
290 if err := rpc.ApiGetJson(url, stats); err != nil {
291 return nil, err
292 }
293 return stats, nil
294}
295
296func (c *ApiClient) Slots() ([]*models.Slot, error) {
297 url := c.encodeURL("/api/proxy/slots/%s", c.xauth)

Callers

nothing calls this directly

Calls 1

encodeURLMethod · 0.95

Tested by

no test coverage detected