ListPredicates returns a list of predicates.
()
| 120 | |
| 121 | // ListPredicates returns a list of predicates. |
| 122 | func (s SimpleInMemoryStore) ListPredicates() []ast.PredicateSym { |
| 123 | var r []ast.PredicateSym |
| 124 | for p := range s.shardsByPredicate { |
| 125 | r = append(r, p) |
| 126 | } |
| 127 | return r |
| 128 | } |
| 129 | |
| 130 | // NewSimpleInMemoryStore constructs a new SimpleInMemoryStore. |
| 131 | func NewSimpleInMemoryStore() SimpleInMemoryStore { |
no outgoing calls