www

package
v0.1.105 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package www embeds the built clicky-ui single-page app and serves it with an index.html fallback for client-side routes. The real assets are produced by `vite build` into dist/, which is gitignored: run `make ui-build` (or `task www:build`) before a source checkout compiles. Release tags point at a commit off main that carries the built dist/, so module consumers compile.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() (http.Handler, error)

Handler returns an http.Handler that serves the embedded SPA. Existing files under dist/ are served directly; unknown non-asset paths fall back to index.html so client-side routing works. GET /traces/{kind} links to a trace window (?stream, ?afterSeq, ?toSeq) and redirects to the app's page for the kind's result profile, so a host links to a window without knowing how the app names its pages.

The app may be mounted under a prefix the host strips (http.StripPrefix): index.html is then served with its <base> at that prefix, read from the difference between the path the client asked for and the one left here. A host serving it over a trace store (traceserve.Handler) routes /api/ to the store under the same prefix and everything else here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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