ui

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: GPL-3.0 Imports: 33 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

type UI struct {
	// contains filtered or unexported fields
}

UI holds parsed templates and the static file handler. Page templates are parsed with base.html (full-page renders). Fragment templates are parsed standalone (htmx partial responses).

func New

func New() *UI

New parses all embedded templates and prepares the static file server.

func (*UI) RegisterRoutes

func (ui *UI) RegisterRoutes(r chi.Router, srv *server.Server, orch *orchestrator.Orchestrator, bgCtx context.Context)

RegisterRoutes mounts the UI routes on the router. The orchestrator and bgCtx are only used by the admin Updates tab; tests without rolling-update support may pass nil for orch.

Jump to

Keyboard shortcuts

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