StartDashboardServer starts the dashboard HTTP server (legacy function for compatibility)
(addr string, cm *manager.ConnManager)
| 247 | |
| 248 | // StartDashboardServer starts the dashboard HTTP server (legacy function for compatibility) |
| 249 | func StartDashboardServer(addr string, cm *manager.ConnManager) error { |
| 250 | server := NewDashboardServer(cm) |
| 251 | |
| 252 | shared.LogInfof("Starting dashboard server on %s", addr) |
| 253 | shared.LogInfof("Dashboard available at: http://localhost%s", addr) |
| 254 | |
| 255 | httpServer := &http.Server{ |
| 256 | Addr: addr, |
| 257 | Handler: server, |
| 258 | ReadTimeout: 15 * time.Second, |
| 259 | WriteTimeout: 15 * time.Second, |
| 260 | } |
| 261 | |
| 262 | return httpServer.ListenAndServe() |
| 263 | } |
nothing calls this directly
no test coverage detected