@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user