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

Method Types

schema/schema.go:320–332  ·  view source on GitHub ↗

Types returns the list of types.

()

Source from the content-addressed store, hash-verified

318
319// Types returns the list of types.
320func (s *state) Types() []string {
321 if s == nil {
322 return nil
323 }
324
325 s.RLock()
326 defer s.RUnlock()
327 var out []string
328 for k := range s.types {
329 out = append(out, k)
330 }
331 return out
332}
333
334// Tokenizer returns the tokenizer for given predicate
335func (s *state) Tokenizer(ctx context.Context, pred string) []tok.Tokenizer {

Callers 3

GetTypesFunction · 0.80
deleteStalePredsFunction · 0.80
doStreamSnapshotFunction · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected