HAStatus returns the current HA status from the Seesaw Engine.
(ctx *ipc.Context, status *seesaw.HAStatus)
| 153 | |
| 154 | // HAStatus returns the current HA status from the Seesaw Engine. |
| 155 | func (s *SeesawEngine) HAStatus(ctx *ipc.Context, status *seesaw.HAStatus) error { |
| 156 | s.trace("HAStatus", ctx) |
| 157 | if ctx == nil { |
| 158 | return errContext |
| 159 | } |
| 160 | |
| 161 | if !ctx.CanRead() { |
| 162 | return errAccess |
| 163 | } |
| 164 | |
| 165 | if status != nil { |
| 166 | *status = s.engine.haStatus() |
| 167 | } |
| 168 | return nil |
| 169 | } |
| 170 | |
| 171 | // Healthchecks returns a list of currently configured healthchecks that |
| 172 | // should be performed by the Seesaw Healthcheck component. |