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

Method StatsSimple

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

Source from the content-addressed store, hash-verified

276}
277
278func (c *ApiClient) StatsSimple() (*Stats, error) {
279 url := c.encodeURL("/api/proxy/stats/%s", c.xauth)
280 stats := &Stats{}
281 if err := rpc.ApiGetJson(url, stats); err != nil {
282 return nil, err
283 }
284 return stats, nil
285}
286
287func (c *ApiClient) Stats(flags StatsFlags) (*Stats, error) {
288 url := c.encodeURL("/api/proxy/stats/%s/%d", c.xauth, flags)

Callers 2

TestStatsFunction · 0.80
newProxyStatsMethod · 0.80

Calls 1

encodeURLMethod · 0.95

Tested by 1

TestStatsFunction · 0.64