(w http.ResponseWriter, r *http.Request)
| 205 | } |
| 206 | |
| 207 | func (conf *GlobalConfig) API_stop_push(w http.ResponseWriter, r *http.Request) { |
| 208 | q := r.URL.Query() |
| 209 | pusher, ok := Pushers.Load(q.Get("url")) |
| 210 | if ok { |
| 211 | pusher.(IPusher).Stop() |
| 212 | util.ReturnOK(w, r) |
| 213 | } else { |
| 214 | util.ReturnError(util.APIErrorNoPusher, "no such pusher", w, r) |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | func (conf *GlobalConfig) API_stop_subscribe(w http.ResponseWriter, r *http.Request) { |
| 219 | q := r.URL.Query() |
nothing calls this directly
no test coverage detected