dashboard

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL