mirror of
https://github.com/hanzoai/vector-go.git
synced 2026-10-30 18:18:35 +00:00
15 lines
315 B
Go
15 lines
315 B
Go
package qdrant
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// Check liveliness of the service.
|
|
func (c *Client) HealthCheck(ctx context.Context) (*HealthCheckReply, error) {
|
|
resp, err := c.GetQdrantClient().HealthCheck(ctx, &HealthCheckRequest{})
|
|
if err != nil {
|
|
return nil, newQdrantErr(err, "HealthCheck")
|
|
}
|
|
return resp, nil
|
|
}
|