()
| 805 | } |
| 806 | |
| 807 | func (c *ApiClient) Slots() ([]*models.Slot, error) { |
| 808 | url := c.encodeURL("/api/topom/slots/%s", c.xauth) |
| 809 | slots := []*models.Slot{} |
| 810 | if err := rpc.ApiGetJson(url, &slots); err != nil { |
| 811 | return nil, err |
| 812 | } |
| 813 | return slots, nil |
| 814 | } |
| 815 | |
| 816 | func (c *ApiClient) Reload() error { |
| 817 | url := c.encodeURL("/api/topom/reload/%s", c.xauth) |