()
| 550 | } |
| 551 | |
| 552 | func (g *GraphQLHealthStore) GetHealth() GraphQLHealth { |
| 553 | v := g.v.Load() |
| 554 | if v == nil { |
| 555 | return GraphQLHealth{Healthy: false, StatusMsg: "init"} |
| 556 | } |
| 557 | return v.(GraphQLHealth) |
| 558 | } |
| 559 | |
| 560 | func (g *GraphQLHealthStore) up() { |
| 561 | g.v.Store(GraphQLHealth{Healthy: true, StatusMsg: "up"}) |
no outgoing calls
no test coverage detected