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
Click to show internal directories.
Click to hide internal directories.