ui

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddonDetail added in v1.4.0

func AddonDetail(nav []NavItem, addon AddonRow, streamURL string, assetBase string) templ.Component

func Addons

func Addons(nav []NavItem, rows []AddonRow, assetBase string) templ.Component

func Config added in v1.5.0

func Config(nav []NavItem, envVars []EnvVarRow, runtime RuntimeInfo, addons []ConfigAddonRow, assetBase string) templ.Component

func Layout

func Layout(title string, nav []NavItem, assetBase string) templ.Component

func Logs added in v1.3.0

func Logs(nav []NavItem, rows []LogRow, streamURL string, assetBase string) templ.Component

func Requests

func Requests(nav []NavItem, rows []RequestRow, assetBase string) templ.Component

func Routes

func Routes(nav []NavItem, rows []RouteRow, assetBase string) templ.Component

Types

type AddonEventRow added in v1.4.0

type AddonEventRow struct {
	Label  string
	Level  string
	Detail map[string]string // flattened for display
}

AddonEventRow is the view model for a single addon panel event.

type AddonRow

type AddonRow struct {
	ID           string
	Label        string
	Capabilities []string
	Resources    []string
	DetailURL    string // link to the addon's event stream detail page
}

AddonRow is the view model for a registered addon in the panel.

type ConfigAddonRow added in v1.5.0

type ConfigAddonRow struct {
	ID           string
	Version      string
	Capabilities []string
	Resources    []string
}

ConfigAddonRow is the view model for an addon in the config page.

type EnvVarRow added in v1.5.0

type EnvVarRow struct {
	Key         string
	Value       string // redacted if secret
	Source      string
	Required    bool
	Secret      bool
	Description string
}

EnvVarRow is the view model for a single env var in the config page.

type LogRow added in v1.3.0

type LogRow struct {
	Timestamp time.Time
	Level     string
	Message   string
	RequestID string
}

LogRow is the view model for a single log entry.

type NavItem struct {
	Label  string
	Path   string
	Active bool
}

NavItem represents a sidebar navigation entry.

type RequestRow

type RequestRow struct {
	ID        string
	Timestamp time.Time
	Method    string
	Path      string
	Status    int
	LatencyMS float64
	RequestID string
}

RequestRow is the view model for a single request entry.

type RouteRow

type RouteRow struct {
	Method string
	Path   string
}

RouteRow is the view model for a single registered route.

type RuntimeInfo added in v1.5.0

type RuntimeInfo struct {
	GoVersion   string
	Goroutines  int
	HeapAllocMB float64
	SysMB       float64
}

RuntimeInfo holds Go runtime statistics for display.

Jump to

Keyboard shortcuts

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