handlers

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAPIHealth

func HandleAPIHealth(deps *Deps) forge.Handler

HandleAPIHealth returns health check data as JSON.

func HandleAPIHistory

func HandleAPIHistory(deps *Deps) forge.Handler

HandleAPIHistory returns historical data as JSON.

func HandleAPIMetrics

func HandleAPIMetrics(deps *Deps) forge.Handler

HandleAPIMetrics returns metrics data as JSON.

func HandleAPIMetricsReport

func HandleAPIMetricsReport(deps *Deps) forge.Handler

HandleAPIMetricsReport returns comprehensive metrics report.

func HandleAPIOverview

func HandleAPIOverview(deps *Deps) forge.Handler

HandleAPIOverview returns overview data as JSON.

func HandleAPIServiceDetail

func HandleAPIServiceDetail(deps *Deps) forge.Handler

HandleAPIServiceDetail returns detailed information about a specific service.

func HandleAPIServices

func HandleAPIServices(deps *Deps) forge.Handler

HandleAPIServices returns service list as JSON.

func HandleExportCSV

func HandleExportCSV(deps *Deps) forge.Handler

HandleExportCSV exports dashboard service data as CSV.

func HandleExportJSON

func HandleExportJSON(deps *Deps) forge.Handler

HandleExportJSON exports dashboard data as JSON.

func HandleExportPrometheus

func HandleExportPrometheus(deps *Deps) forge.Handler

HandleExportPrometheus exports metrics in Prometheus text format.

func HandleSSEEndpoint

func HandleSSEEndpoint(broker *sse.Broker) forge.SSEHandler

HandleSSEEndpoint returns the SSE handler for the dashboard event stream. This handler is registered with router.EventStream() in the extension.

func HandleSSEStatus

func HandleSSEStatus(broker *sse.Broker) forge.Handler

HandleSSEStatus returns a JSON handler that reports SSE broker status.

Types

type Config

type Config struct {
	BasePath       string
	Title          string
	Theme          string
	CustomCSS      string
	EnableExport   bool
	EnableRealtime bool
	EnableSearch   bool
	EnableSettings bool
	EnableBridge   bool
	ExportFormats  []string
}

Config mirrors the dashboard config fields needed by handlers.

type Deps

type Deps struct {
	Registry  *contributor.ContributorRegistry
	Collector *collector.DataCollector
	History   *collector.DataHistory
	Config    Config
}

Deps holds shared dependencies for all handlers.

Jump to

Keyboard shortcuts

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