| 57 | } |
| 58 | |
| 59 | type 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. |
| 70 | func State() *state { |