()
| 24 | ) |
| 25 | |
| 26 | func (s InstanceState) String() string { |
| 27 | switch s { |
| 28 | case StateStarting: |
| 29 | return "starting" |
| 30 | case StateHealthy: |
| 31 | return "healthy" |
| 32 | case StateUnhealthy: |
| 33 | return "unhealthy" |
| 34 | case StateDead: |
| 35 | return "dead" |
| 36 | default: |
| 37 | return "unknown" |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | type Instance struct { |
| 42 | Config config.ExpandedInstance |
no outgoing calls
no test coverage detected