FactStore provides access to a set of facts.
| 46 | |
| 47 | // FactStore provides access to a set of facts. |
| 48 | type FactStore interface { |
| 49 | ReadOnlyFactStore |
| 50 | |
| 51 | // Add adds a fact to the store and returns true if it didn't exist before. |
| 52 | Add(ast.Atom) bool |
| 53 | |
| 54 | // Merge merges contents of given store. |
| 55 | Merge(ReadOnlyFactStore) |
| 56 | } |
| 57 | |
| 58 | // GetAllFacts streams all facts in a store. |
| 59 | func GetAllFacts(fs FactStore, fn func(ast.Atom) error) error { |
no outgoing calls
no test coverage detected