MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / list

Function list

flow-plugins/src/video_server.rs:77–84  ·  view source on GitHub ↗
(#[data] state: State)

Source from the content-addressed store, hash-verified

75#[get("/list")]
76#[openapi(summary = "list all video streams")]
77async fn list(#[data] state: State) -> Result<impl Reply, Rejection> {
78 let mapping = state.mapping.lock().await;
79 let mut videos = vec![];
80 for (descp, _) in mapping.values() {
81 videos.push(descp);
82 }
83 Ok(rweb::reply::json(&videos))
84}
85
86#[get("/get_msgs/{id}")]
87#[openapi(summary = "get messages from video analyze by id")]

Callers 9

execMethod · 0.85
raw_nmsFunction · 0.85
nmsFunction · 0.85
raw_nmsFunction · 0.85
cpu_nmsFunction · 0.85
argmax_keepdimsFunction · 0.85
inferenceMethod · 0.85
remove_fcFunction · 0.85
_update_trackersMethod · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected