Files
Gardomatic/lib/client/healthcheck.go
T
kleiax 904d14b64c
CI / test (push) Canceled after 0s
Initial commit
2026-09-12 22:22:17 +02:00

14 lines
320 B
Go

package client
import (
"context"
"net/http"
)
// Healthcheck returns API availability and build information.
func (c *Client) Healthcheck(ctx context.Context) (Health, *Response, error) {
var health Health
response, err := c.do(ctx, http.MethodGet, "v1/healthcheck", nil, &health)
return health, response, err
}