(token string, force bool)
| 844 | } |
| 845 | |
| 846 | func (c *ApiClient) RemoveProxy(token string, force bool) error { |
| 847 | var value int |
| 848 | if force { |
| 849 | value = 1 |
| 850 | } |
| 851 | url := c.encodeURL("/api/topom/proxy/remove/%s/%s/%d", c.xauth, token, value) |
| 852 | return rpc.ApiPutJson(url, nil, nil) |
| 853 | } |
| 854 | |
| 855 | func (c *ApiClient) CreateGroup(gid int) error { |
| 856 | url := c.encodeURL("/api/topom/group/create/%s/%d", c.xauth, gid) |