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

Method IsOnline

api.go:460–462  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

458// IsOnline returns true if healthcheck enabled and client is online.
459// If HealthCheck function has not been called this will always return true.
460func (c *Client) IsOnline() bool {
461 return !c.IsOffline()
462}
463
464// sets online healthStatus to offline
465func (c *Client) markOffline() {

Callers 2

TestHealthCheckFunction · 0.80
mainFunction · 0.80

Calls 1

IsOfflineMethod · 0.95

Tested by 1

TestHealthCheckFunction · 0.64