MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / StartDashboardServer

Function StartDashboardServer

internal/dashboard/api.go:249–263  ·  view source on GitHub ↗

StartDashboardServer starts the dashboard HTTP server (legacy function for compatibility)

(addr string, cm *manager.ConnManager)

Source from the content-addressed store, hash-verified

247
248// StartDashboardServer starts the dashboard HTTP server (legacy function for compatibility)
249func 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}

Callers

nothing calls this directly

Calls 2

LogInfofFunction · 0.92
NewDashboardServerFunction · 0.85

Tested by

no test coverage detected