()
| 294 | } |
| 295 | |
| 296 | func (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 | |
| 305 | func (c *ApiClient) ResetStats() error { |
| 306 | url := c.encodeURL("/api/proxy/stats/reset/%s", c.xauth) |