portal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedFS embed.FS

Functions

func ComputeVersion

func ComputeVersion(fsys fs.FS) string

ComputeVersion hashes the portal asset files to produce a short cache-busting token. Call this once at startup; the result is stable for the lifetime of the process.

func GenerateHTML

func GenerateHTML(data HTMLData) (string, error)

GenerateHTML renders the portal index.html from the given data.

Types

type HTMLData

type HTMLData struct {
	AssetsBase string // URL prefix for portal assets, e.g. "/portal/assets/"
	Version    string // cache-busting query param value
}

HTMLData holds the data passed to the portal HTML template. Add fields here to inject global variables or server-side config into the page.

Jump to

Keyboard shortcuts

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