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