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

Method handleStatus

pkg/desktop/bridge_electron.go:293–303  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

291}
292
293func (b *ElectronBridge) handleStatus(w http.ResponseWriter, r *http.Request) {
294 agentID := r.URL.Query().Get("agent_id")
295
296 resp, _ := b.handler(&FrontendMessage{
297 ID: generateID(),
298 Type: MsgTypeGetStatus,
299 AgentID: agentID,
300 })
301
302 writeJSON(w, http.StatusOK, resp)
303}
304
305func (b *ElectronBridge) handleHistory(w http.ResponseWriter, r *http.Request) {
306 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