Documentation
¶
Overview ¶
Package dashboard serves an embedded HTML overview of running sandboxes and templates. Intended for local development — no auth required, consistent with the /health endpoint.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(opts HandlerOptions) http.Handler
NewHandler returns an http.Handler that serves the dashboard UI and its backing API under the /dashboard prefix.
Types ¶
type HandlerOptions ¶
type HandlerOptions struct {
Manager sandboxManager
Runtime statsProvider
Templates templateStore
}
HandlerOptions configures the dashboard handler. Templates is optional — when nil the dashboard omits the template section. Runtime is optional — without it, per-sandbox memory/CPU stats are omitted but the UI still works.
Click to show internal directories.
Click to hide internal directories.