setHAStatus tells the engine what the current HA status is.
(status seesaw.HAStatus)
| 191 | |
| 192 | // setHAStatus tells the engine what the current HA status is. |
| 193 | func (e *Engine) setHAStatus(status seesaw.HAStatus) error { |
| 194 | select { |
| 195 | case e.haManager.statusChan <- status: |
| 196 | default: |
| 197 | return fmt.Errorf("status channel if full") |
| 198 | } |
| 199 | return nil |
| 200 | } |
| 201 | |
| 202 | // haConfig returns the HAConfig for an engine. |
| 203 | func (e *Engine) haConfig() (*seesaw.HAConfig, error) { |
no outgoing calls
no test coverage detected