webconsole

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 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 webconsole serves the Web console's bundle on the gateway under /console (FR-UI-002). The console is a single-page app: it talks only to the public APIs and the admin API (FR-UI-003), so this handler serves nothing but files.

Index

Constants

View Source
const Prefix = "/console/"

Prefix is the path the console is served under.

Variables

This section is empty.

Functions

func Handler

func Handler(fsys fs.FS) http.Handler

Handler serves fsys (the bundle, with index.html at its root) under Prefix. /console redirects to /console/; hashed files under assets/ are cached for good, index.html never is; any other path that is not a file gets index.html, so that deep links survive a reload.

Types

This section is empty.

Jump to

Keyboard shortcuts

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