web

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 15 Imported by: ? 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

Index

Constants

This section is empty.

Variables

View Source
var StaticFiles = &httpFSWrapper{prefix: "placeholder", fs: http.FS(assetsFS)}

StaticFiles provides http filesystem with static files for UI

Functions

func Ensure added in v2.2.0

func Ensure(logger *zap.Logger, cfg *config.Config) error

Ensure prepares cfg.Web.WebDirectory.

If the user already set web_directory, that path is left unchanged. Otherwise, when this binary contains a packed UI, the archive is extracted into {data}/internal/web_console (skipped when the stamp still matches) and web_directory is pointed at that folder. The HTTP handler then serves files from disk, so the embedded bytes are not kept in the heap.

func HasEmbeddedUI added in v2.2.0

func HasEmbeddedUI() bool

HasEmbeddedUI reports whether the binary contains a packed console (index.html).

Types

This section is empty.

Jump to

Keyboard shortcuts

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