| 91 | } |
| 92 | |
| 93 | type APIController struct { |
| 94 | r *runner.Runner |
| 95 | auth *auth.Authenticator |
| 96 | hub *wsWriter.Hub |
| 97 | agentHub *agent.Hub |
| 98 | metricsHub *wsMetrics.MetricsHub |
| 99 | upgrader websocket.Upgrader |
| 100 | controllerID string |
| 101 | } |
| 102 | |
| 103 | func handleError(ctx context.Context, w http.ResponseWriter, err error) { |
| 104 | w.Header().Set("Content-Type", "application/json") |
nothing calls this directly
no outgoing calls
no test coverage detected