MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / CheckVersion

Method CheckVersion

edgraph/server.go:2148–2156  ·  view source on GitHub ↗

CheckVersion returns the version of this Dgraph instance.

(ctx context.Context, c *api.Check)

Source from the content-addressed store, hash-verified

2146
2147// CheckVersion returns the version of this Dgraph instance.
2148func (s *Server) CheckVersion(ctx context.Context, c *api.Check) (v *api.Version, err error) {
2149 if err := x.HealthCheck(); err != nil {
2150 return v, err
2151 }
2152
2153 v = new(api.Version)
2154 v.Tag = x.Version()
2155 return v, nil
2156}
2157
2158// -------------------------------------------------------------------------------------------------
2159// HELPER FUNCTIONS

Callers

nothing calls this directly

Calls 2

HealthCheckFunction · 0.92
VersionFunction · 0.92

Tested by

no test coverage detected