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

Method handleHealth

pkg/tools/bridge/http_server.go:209–213  ·  view source on GitHub ↗

handleHealth 健康检查

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

207
208// handleHealth 健康检查
209func (s *HTTPBridgeServer) handleHealth(w http.ResponseWriter, r *http.Request) {
210 s.sendJSON(w, map[string]string{
211 "status": "ok",
212 })
213}
214
215// getToolContext 获取工具上下文
216func (s *HTTPBridgeServer) getToolContext() *tools.ToolContext {

Callers

nothing calls this directly

Calls 1

sendJSONMethod · 0.95

Tested by

no test coverage detected