web

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package web serves the built front end from inside the binary.

The assets are embedded rather than shipped alongside, so deployment stays one file. That is the same reason the engine avoids cgo: an operator should be able to copy a binary onto a server and run it, with no JVM, no installer and no asset directory to get out of step with the executable.

The built output is committed so that `go build` works on a checkout without Node installed. Rebuild it with `make web`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assets

func Assets() (fs.FS, error)

Assets returns the built front end as a filesystem.

func Available

func Available() bool

Available reports whether a real front end was built into this binary, as opposed to the placeholder that keeps the package compiling.

func Handler

func Handler() (http.Handler, error)

Handler serves the front end.

Anything that is not a real file falls back to index.html, because the interface is a single page application: a browser reloaded on a deep link must get the app rather than a 404.

Types

This section is empty.

Jump to

Keyboard shortcuts

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