Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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
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.