mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
11 lines
203 B
Go
11 lines
203 B
Go
package http
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// HealthCheck GETs /api/status
|
|
func HealthCheck(addr string) (int, error) {
|
|
resp, err := http.Get("http://" + addr + "/api/status")
|
|
return resp.StatusCode, err
|
|
}
|