MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / GetHealth

Method GetHealth

graphql/admin/admin.go:552–558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

550}
551
552func (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
560func (g *GraphQLHealthStore) up() {
561 g.v.Store(GraphQLHealth{Healthy: true, StatusMsg: "up"})

Callers 1

graphqlProbeHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected