MCPcopy
hub / github.com/dgraph-io/dgraph / healthURL

Method healthURL

dgraphtest/dgraph.go:169–175  ·  view source on GitHub ↗
(c *LocalCluster)

Source from the content-addressed store, hash-verified

167}
168
169func (z *zero) healthURL(c *LocalCluster) (string, error) {
170 publicPort, err := publicPort(c.dcli, z, zeroHttpPort)
171 if err != nil {
172 return "", err
173 }
174 return "http://0.0.0.0:" + publicPort + "/health", nil
175}
176
177func (z *zero) changeStatus(isRunning bool) {
178 z.isRunning = isRunning

Callers

nothing calls this directly

Calls 1

publicPortFunction · 0.85

Tested by

no test coverage detected