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