web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package web embeds the built dashboard into the LoadWave binary.

Shipping the UI inside the binary is what keeps deployment to a single file: there is no asset directory to place correctly, and no way for the dashboard to end up a different version from the coordinator serving it.

The embedded directory is the frontend's build output. It is not checked in, so a fresh clone embeds only a placeholder and the server explains how to build the real thing. Run `make ui` — or `npm --prefix web ci && npm --prefix web run build` — to populate it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assets

func Assets() (fs.FS, bool)

Assets returns the built dashboard rooted at its index, and whether a real build is present.

A clone that has never built the frontend yields ok=false rather than an error, so `go build ./...` and `go test ./...` work with no Node toolchain installed at all — which matters for contributors working only on the Go side.

Types

This section is empty.

Jump to

Keyboard shortcuts

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