ui

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: GPL-3.0 Imports: 33 Imported by: 0

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