mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
12 lines
203 B
Go
12 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
|
||
|
}
|