MCPcopy
hub / github.com/minio/minio-go / IsOffline

Method IsOffline

api.go:471–473  ·  view source on GitHub ↗

IsOffline returns true if healthcheck enabled and client is offline If HealthCheck function has not been called this will always return false.

()

Source from the content-addressed store, hash-verified

469// IsOffline returns true if healthcheck enabled and client is offline
470// If HealthCheck function has not been called this will always return false.
471func (c *Client) IsOffline() bool {
472 return atomic.LoadInt32(&c.healthStatus) == offline
473}
474
475// HealthCheck starts a healthcheck to see if endpoint is up.
476// Returns a context cancellation function, to stop the health check,

Callers 4

IsOnlineMethod · 0.95
HealthCheckMethod · 0.95
executeMethodMethod · 0.95
TestHealthCheckFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestHealthCheckFunction · 0.64