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

Method API_stream

http.go:49–59  ·  view source on GitHub ↗
(rw http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

47}
48
49func (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
61func (conf *GlobalConfig) API_sysInfo(rw http.ResponseWriter, r *http.Request) {
62 util.ReturnValue(&SysInfo, rw, r)

Callers

nothing calls this directly

Calls 3

ReturnValueFunction · 0.92
ReturnErrorFunction · 0.92
GetMethod · 0.45

Tested by

no test coverage detected