endpoints

package
v0.0.0-...-cf3d621 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDebugEndpoints

func RegisterDebugEndpoints(e *echo.Echo, config *engine.ConfigWorkspace, appJson string, urlCacheInterface URLCacheInterface)

RegisterDebugEndpoints registers all debug endpoints

func RegisterMonitoringEndpoints

func RegisterMonitoringEndpoints(e *echo.Echo, config *engine.ConfigWorkspace)

RegisterMonitoringEndpoints registers health and metrics endpoints

func UpdateCacheMetrics

func UpdateCacheMetrics(hit bool)

func UpdateDatabaseMetrics

func UpdateDatabaseMetrics(duration time.Duration)

func UpdateProcessMetrics

func UpdateProcessMetrics(created bool)

func UpdateWorkflowMetrics

func UpdateWorkflowMetrics(success bool, duration time.Duration)

UpdateMetrics provides methods to update metrics from other parts of the application

Types

type ComponentHealth

type ComponentHealth struct {
	Status  string `json:"status"`
	Message string `json:"message,omitempty"`
}

type HealthStatus

type HealthStatus struct {
	Status     string                     `json:"status"`
	Timestamp  int64                      `json:"timestamp"`
	Uptime     string                     `json:"uptime"`
	Version    string                     `json:"version"`
	Components map[string]ComponentHealth `json:"components"`
	Details    map[string]interface{}     `json:"details,omitempty"`
}

Health check response structure

type MetricsCollector

type MetricsCollector struct {
	// contains filtered or unexported fields
}

Metrics collector for Prometheus

type URLCacheEntry

type URLCacheEntry struct {
	URL      string
	Endpoint string
}

URLCacheEntry represents a cached URL entry

type URLCacheInterface

type URLCacheInterface interface {
	GetSize() int
	GetEntries() []URLCacheEntry
	Clear()
}

URLCacheInterface defines the interface for URL cache operations

Jump to

Keyboard shortcuts

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