Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | context.Context | Context for cancellation/timeouts |
Returns
| Type | Description |
|---|---|
map[string]string | Health status information from the server |
error | Any error encountered during the health check |
Exceptions
Error
Error
- Throws if the health check request fails due to network connectivity issues.
- Throws if the server is unreachable or times out.
Service Errors
Service Errors
- Throws if the CyborgDB service is unavailable or unreachable.
- Throws if there are internal server errors on the CyborgDB service.
Example Usage
Response Fields
| Field | Type | Description |
|---|---|---|
status | string | Current health status of the service (typically “healthy”) |
api_version | string | Version of the API interface (e.g., “v1”) |
version | string | Version of the CyborgDB application/service |