IsHealthy returns true if all services are currently in the Running state.
()
| 105 | |
| 106 | // IsHealthy returns true if all services are currently in the Running state. |
| 107 | func (m *Manager) IsHealthy() bool { |
| 108 | m.mu.Lock() |
| 109 | defer m.mu.Unlock() |
| 110 | |
| 111 | return m.state == healthy |
| 112 | } |
| 113 | |
| 114 | // AwaitHealthy waits for the ServiceManager to become healthy. Returns nil, if manager is healthy, error otherwise (eg. manager |
| 115 | // is in a state in which it cannot get healthy anymore). |
no outgoing calls