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 (*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.
Click to show internal directories.
Click to hide internal directories.