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

Struct state

schema/schema.go:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59type state struct {
60 sync.RWMutex
61 // Map containing predicate to type information.
62 predicate map[string]*pb.SchemaUpdate
63 types map[string]*pb.TypeUpdate
64 elog trace.EventLog
65 // mutSchema holds the schema update that is being applied in the background.
66 mutSchema map[string]*pb.SchemaUpdate
67}
68
69// State returns the struct holding the current schema.
70func State() *state {

Callers 1

RunMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected