pages

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 18 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

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 AllMetricsPage added in v1.2.0

func AllMetricsPage(ctx context.Context, c *collector.DataCollector, basePath string) (templ.Component, error)

AllMetricsPage collects data and returns the full metrics list page component.

func AllMetricsPageContent added in v1.2.0

func AllMetricsPageContent(metrics []collector.MetricEntry, basePath string) templ.Component

AllMetricsPageContent renders the dedicated full metrics list page with search and filters.

func CollectorDetailPage added in v1.2.0

func CollectorDetailPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, name string, basePath string) (templ.Component, error)

CollectorDetailPage collects data and returns the collector detail page component.

func CollectorDetailPageContent added in v1.2.0

func CollectorDetailPageContent(detail *collector.CollectorDetail, metricsData *collector.MetricsData, entries []collector.MetricEntry, statusChart chart.Data, methodChart chart.Data, basePath string) templ.Component

CollectorDetailPageContent renders the collector detail page.

func ErrorPage

func ErrorPage(code int, title, message, retryURL string) templ.Component

ErrorPage renders an error page with appropriate styling for the given status code.

func ExtensionsPage added in v1.2.0

func ExtensionsPage(ctx context.Context, registry *contributor.ContributorRegistry, basePath string) (templ.Component, error)

ExtensionsPage collects extension info from the registry and returns the page component.

func ExtensionsPageContent added in v1.2.0

func ExtensionsPageContent(extensions []ExtensionInfo, basePath string) templ.Component

ExtensionsPageContent renders the extensions listing page with a grid of extension cards.

func HealthPage

HealthPage collects data and returns the health page component.

func HealthPageContent added in v1.0.0

func HealthPageContent(health *collector.HealthData, healthChart chart.Data, hasHistory bool) templ.Component

HealthPageContent renders the health checks page with service statuses and history chart.

func InternalErrorPage

func InternalErrorPage(detail string) templ.Component

InternalErrorPage renders a 500 error page.

func MetricDetailPage added in v1.2.0

func MetricDetailPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, name string, basePath string) (templ.Component, error)

MetricDetailPage collects data and returns the metric detail page component.

func MetricDetailPageContent added in v1.2.0

func MetricDetailPageContent(detail *collector.MetricDetail, bucketChart chart.Data, timeSeriesChart chart.Data, hasTimeSeries bool, basePath string) templ.Component

MetricDetailPageContent renders the metric detail page.

func MetricsPage

func MetricsPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, basePath string) (templ.Component, error)

MetricsPage collects data and returns the metrics overview page component.

func MetricsPageContent added in v1.0.0

func MetricsPageContent(report *collector.MetricsReport, metricsData *collector.MetricsData, typeChart chart.Data, trendChart chart.Data, hasHistory bool, recentMetrics []collector.MetricEntry, basePath string) templ.Component

MetricsPageContent renders the metrics overview page with stats, charts, and recent metrics.

func NotFoundPage

func NotFoundPage(basePath string) templ.Component

NotFoundPage renders a 404 error page.

func OverviewPage

func OverviewPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, pluginWidgets []contributor.ResolvedWidget, basePath string) (templ.Component, error)

OverviewPage collects data and returns the overview page component.

func OverviewPageContent added in v1.0.0

func OverviewPageContent(overview *collector.OverviewData, health *collector.HealthData, serviceChart chart.Data, hasHistory bool, pluginWidgets []contributor.ResolvedWidget, basePath string) templ.Component

OverviewPageContent renders the dashboard overview page with stats, charts, health summary, and plugin widgets.

func ServiceUnavailablePage

func ServiceUnavailablePage(retryURL string) templ.Component

ServiceUnavailablePage renders a 503 error page with optional auto-retry.

func ServicesPage

func ServicesPage(ctx context.Context, c *collector.DataCollector) (templ.Component, error)

ServicesPage collects data and returns the services page component.

func ServicesPageContent added in v1.0.0

func ServicesPageContent(services []collector.ServiceInfo) templ.Component

ServicesPageContent renders the services list page with improved cards.

func TraceDetailPage added in v1.2.0

func TraceDetailPage(ctx context.Context, store *collector.TraceStore, traceID string, basePath string) (templ.Component, error)

TraceDetailPage is the constructor that builds the trace detail page.

func TraceDetailPageContent added in v1.2.0

func TraceDetailPageContent(detail *collector.TraceDetail, basePath string) templ.Component

TraceDetailPageContent renders the full trace detail view with waterfall timeline.

func TracesPage added in v1.2.0

func TracesPage(ctx context.Context, store *collector.TraceStore, basePath string) (templ.Component, error)

TracesPage is the constructor that builds the traces list page.

func TracesPageContent added in v1.2.0

func TracesPageContent(traces []collector.TraceSummary, stats collector.TraceStats, basePath string) templ.Component

TracesPageContent renders the traces list page with stats, filters, and table.

Types

type ExtensionInfo added in v1.2.0

type ExtensionInfo struct {
	Name        string
	DisplayName string
	Icon        string
	Version     string
	Layout      string
	EntryPath   string
	WidgetCount int
	PageCount   int
	IsCore      bool
}

ExtensionInfo holds display data for a single extension on the extensions listing page.

type HTTPSummary added in v1.2.0

type HTTPSummary struct {
	ErrorRate       string
	RPS             string
	AvgDuration     string
	ActiveRequests  string
	AvgRequestSize  string
	AvgResponseSize string
	TotalRequests   string
}

HTTPSummary contains summary stats for the HTTP collector.

type PathMetricEntry added in v1.2.0

type PathMetricEntry struct {
	Path  string
	Count float64
}

PathMetricEntry contains per-path HTTP metric data.

type RuntimeSummary added in v1.2.0

type RuntimeSummary struct {
	Goroutines  string
	HeapAlloc   string
	HeapSys     string
	HeapObjects string
	GCCount     string
	GCPauseAvg  string
	StackInUse  string
	NumCPU      string
}

RuntimeSummary contains summary stats for the runtime collector.

type SystemSummary added in v1.2.0

type SystemSummary struct {
	CPUUsage    string
	MemoryUsage string
	MemoryTotal string
	LoadAvg1    string
	LoadAvg5    string
	LoadAvg15   string
	DiskUsage   string
	NumCPU      string
}

SystemSummary contains summary stats for the system collector.

Jump to

Keyboard shortcuts

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