CheckVersion returns the version of this Dgraph instance.
(ctx context.Context, c *api.Check)
| 2146 | |
| 2147 | // CheckVersion returns the version of this Dgraph instance. |
| 2148 | func (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 |
nothing calls this directly
no test coverage detected