Documentation
¶
Index ¶
- func CheckServiceHealth(serviceType, url, apiKey string) (models.ServiceHealth, int)
- type HealthCheck
- type HealthService
- func (h *HealthService) Cleanup()
- func (h *HealthService) GetAllHealth() map[string]*HealthCheck
- func (h *HealthService) GetHealth(instanceID string) *HealthCheck
- func (h *HealthService) StartMonitoring(instanceID string, checkFn func(context.Context) (*HealthCheck, error))
- func (h *HealthService) StopMonitoring(instanceID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckServiceHealth ¶
func CheckServiceHealth(serviceType, url, apiKey string) (models.ServiceHealth, int)
CheckServiceHealth performs the health check for a given service using the registry pattern
Types ¶
type HealthCheck ¶
type HealthService ¶
type HealthService struct {
// contains filtered or unexported fields
}
func NewHealthService ¶
func NewHealthService() *HealthService
func (*HealthService) GetAllHealth ¶
func (h *HealthService) GetAllHealth() map[string]*HealthCheck
func (*HealthService) GetHealth ¶
func (h *HealthService) GetHealth(instanceID string) *HealthCheck
func (*HealthService) StartMonitoring ¶
func (h *HealthService) StartMonitoring(instanceID string, checkFn func(context.Context) (*HealthCheck, error))
func (*HealthService) StopMonitoring ¶
func (h *HealthService) StopMonitoring(instanceID string)
Click to show internal directories.
Click to hide internal directories.