()
| 262 | } |
| 263 | |
| 264 | func (c *ApiClient) Model() (*models.Proxy, error) { |
| 265 | url := c.encodeURL("/api/proxy/model") |
| 266 | model := &models.Proxy{} |
| 267 | if err := rpc.ApiGetJson(url, model); err != nil { |
| 268 | return nil, err |
| 269 | } |
| 270 | return model, nil |
| 271 | } |
| 272 | |
| 273 | func (c *ApiClient) XPing() error { |
| 274 | url := c.encodeURL("/api/proxy/xping/%s", c.xauth) |
no test coverage detected