14 lines
320 B
Go
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
|
|
}
|