Documentation
¶
Overview ¶
templ: version: v0.3.977
templ: version: v0.3.977
templ: version: v0.3.977
templ: version: v0.3.977
templ: version: v0.3.977
Index ¶
- func ErrorPage(code int, title, message, retryURL string) templ.Component
- func HealthPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory) (templ.Component, error)
- func HealthPageContent(health *collector.HealthData, healthChart chart.Data, hasHistory bool) templ.Component
- func InternalErrorPage(detail string) templ.Component
- func MetricsPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory) (templ.Component, error)
- func MetricsPageContent(report *collector.MetricsReport, metricsData *collector.MetricsData, ...) templ.Component
- func NotFoundPage(basePath string) templ.Component
- func OverviewPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory) (templ.Component, error)
- func OverviewPageContent(overview *collector.OverviewData, health *collector.HealthData, ...) templ.Component
- func ServiceUnavailablePage(retryURL string) templ.Component
- func ServicesPage(ctx context.Context, c *collector.DataCollector) (templ.Component, error)
- func ServicesPageContent(services []collector.ServiceInfo) templ.Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorPage ¶
ErrorPage renders an error page with appropriate styling for the given status code.
func HealthPage ¶
func HealthPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory) (templ.Component, error)
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 ¶
InternalErrorPage renders a 500 error page.
func MetricsPage ¶
func MetricsPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory) (templ.Component, error)
MetricsPage collects data and returns the metrics 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) templ.Component
MetricsPageContent renders the metrics report page with charts and tables.
func NotFoundPage ¶
NotFoundPage renders a 404 error page.
func OverviewPage ¶
func OverviewPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory) (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) templ.Component
OverviewPageContent renders the dashboard overview page with stats, charts, and health summary.
func ServiceUnavailablePage ¶
ServiceUnavailablePage renders a 503 error page with optional auto-retry.
func ServicesPage ¶
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.
Types ¶
This section is empty.