health

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

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

HealthChecker manages health checks for configured VDBs

func NewHealthChecker

func NewHealthChecker(version string, timeout time.Duration) *HealthChecker

NewHealthChecker creates a new health checker

func (*HealthChecker) CheckHealth

func (hc *HealthChecker) CheckHealth(ctx context.Context) *HealthStatus

CheckHealth checks the health of all registered databases

func (*HealthChecker) HealthzHandler

func (hc *HealthChecker) HealthzHandler() http.HandlerFunc

HealthzHandler returns an HTTP handler for /healthz endpoint

func (*HealthChecker) ReadyzHandler

func (hc *HealthChecker) ReadyzHandler() http.HandlerFunc

ReadyzHandler returns an HTTP handler for /readyz endpoint This is similar to /healthz but can have different logic for Kubernetes readiness probes

func (*HealthChecker) RegisterDatabase

func (hc *HealthChecker) RegisterDatabase(name string, client vectordb.VectorDBClient)

RegisterDatabase registers a VDB client for health checking

type HealthStatus

type HealthStatus struct {
	Status    string            `json:"status"`
	Timestamp int64             `json:"timestamp"`
	Version   string            `json:"version"`
	Databases map[string]string `json:"databases"`
}

HealthStatus represents the overall health status

Jump to

Keyboard shortcuts

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