MCPcopy Index your code
hub / github.com/Monibuca/engine / API_stop_push

Method API_stop_push

http.go:207–216  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

205}
206
207func (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
218func (conf *GlobalConfig) API_stop_subscribe(w http.ResponseWriter, r *http.Request) {
219 q := r.URL.Query()

Callers

nothing calls this directly

Calls 4

ReturnOKFunction · 0.92
ReturnErrorFunction · 0.92
StopMethod · 0.65
GetMethod · 0.45

Tested by

no test coverage detected