(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte)
| 155 | } |
| 156 | |
| 157 | func (c *ProxyController) upsertHost(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte) (interface{}, error) { |
| 158 | host, err := parseHostPack(body) |
| 159 | if err != nil { |
| 160 | return nil, err |
| 161 | } |
| 162 | log.Infof("Upsert %s", host) |
| 163 | return formatResult(host, c.ng.UpsertHost(*host)) |
| 164 | } |
| 165 | |
| 166 | func (c *ProxyController) getListeners(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte) (interface{}, error) { |
| 167 | ls, err := c.ng.GetListeners() |
nothing calls this directly
no test coverage detected