(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte)
| 211 | } |
| 212 | |
| 213 | func (c *ProxyController) deleteBackend(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte) (interface{}, error) { |
| 214 | backendId := params["id"] |
| 215 | log.Infof("Delete Backend(id=%s)", backendId) |
| 216 | if err := c.ng.DeleteBackend(engine.BackendKey{Id: backendId}); err != nil { |
| 217 | return nil, err |
| 218 | } |
| 219 | return Response{"message": "Backend deleted"}, nil |
| 220 | } |
| 221 | |
| 222 | func (c *ProxyController) getBackends(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte) (interface{}, error) { |
| 223 | backends, err := c.ng.GetBackends() |
nothing calls this directly
no test coverage detected