(w http.ResponseWriter, status int, requestID, code, message string)
| 660 | } |
| 661 | |
| 662 | func writeError(w http.ResponseWriter, status int, requestID, code, message string) { |
| 663 | writeJSON(w, status, map[string]any{ |
| 664 | "request_id": requestID, |
| 665 | "status": "error", |
| 666 | "error": map[string]any{ |
| 667 | "code": code, |
| 668 | "message": message, |
| 669 | }, |
| 670 | }) |
| 671 | } |
| 672 | |
| 673 | func (s *Server) telemetryStatus() map[string]any { |
| 674 | type statusProvider interface { |
no test coverage detected