MCPcopy Create free account
hub / github.com/astercloud/aster / handleStatus

Method handleStatus

pkg/desktop/bridge_web.go:264–274  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

262}
263
264func (b *WebBridge) handleStatus(w http.ResponseWriter, r *http.Request) {
265 agentID := r.URL.Query().Get("agent_id")
266
267 resp, _ := b.handler(&FrontendMessage{
268 ID: generateID(),
269 Type: MsgTypeGetStatus,
270 AgentID: agentID,
271 })
272
273 writeJSON(w, http.StatusOK, resp)
274}
275
276func (b *WebBridge) handleHistory(w http.ResponseWriter, r *http.Request) {
277 agentID := r.URL.Query().Get("agent_id")

Callers

nothing calls this directly

Calls 4

generateIDFunction · 0.70
writeJSONFunction · 0.70
GetMethod · 0.65
QueryMethod · 0.65

Tested by

no test coverage detected