(rw http.ResponseWriter, r *http.Request)
| 47 | } |
| 48 | |
| 49 | func (conf *GlobalConfig) API_stream(rw http.ResponseWriter, r *http.Request) { |
| 50 | if streamPath := r.URL.Query().Get("streamPath"); streamPath != "" { |
| 51 | if s := Streams.Get(streamPath); s != nil { |
| 52 | util.ReturnValue(s, rw, r) |
| 53 | } else { |
| 54 | util.ReturnError(util.APIErrorNoStream, NO_SUCH_STREAM, rw, r) |
| 55 | } |
| 56 | } else { |
| 57 | util.ReturnError(util.APIErrorNoStream, "no streamPath", rw, r) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func (conf *GlobalConfig) API_sysInfo(rw http.ResponseWriter, r *http.Request) { |
| 62 | util.ReturnValue(&SysInfo, rw, r) |
nothing calls this directly
no test coverage detected