Documentation
¶
Index ¶
- func HandleAPIHealth(deps *Deps) forge.Handler
- func HandleAPIHistory(deps *Deps) forge.Handler
- func HandleAPIMetrics(deps *Deps) forge.Handler
- func HandleAPIMetricsReport(deps *Deps) forge.Handler
- func HandleAPIOverview(deps *Deps) forge.Handler
- func HandleAPIServiceDetail(deps *Deps) forge.Handler
- func HandleAPIServices(deps *Deps) forge.Handler
- func HandleExportCSV(deps *Deps) forge.Handler
- func HandleExportJSON(deps *Deps) forge.Handler
- func HandleExportPrometheus(deps *Deps) forge.Handler
- func HandleSSEEndpoint(broker *sse.Broker) forge.SSEHandler
- func HandleSSEStatus(broker *sse.Broker) forge.Handler
- type Config
- type Deps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAPIHealth ¶
HandleAPIHealth returns health check data as JSON.
func HandleAPIHistory ¶
HandleAPIHistory returns historical data as JSON.
func HandleAPIMetrics ¶
HandleAPIMetrics returns metrics data as JSON.
func HandleAPIMetricsReport ¶
HandleAPIMetricsReport returns comprehensive metrics report.
func HandleAPIOverview ¶
HandleAPIOverview returns overview data as JSON.
func HandleAPIServiceDetail ¶
HandleAPIServiceDetail returns detailed information about a specific service.
func HandleAPIServices ¶
HandleAPIServices returns service list as JSON.
func HandleExportCSV ¶
HandleExportCSV exports dashboard service data as CSV.
func HandleExportJSON ¶
HandleExportJSON exports dashboard data as JSON.
func HandleExportPrometheus ¶
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.
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.