MergedStore is an implementation of FactStore that merges multiple fact stores. It dispatches lookup requests to all of them but sending all writes to a single one. It is advisable that the read stores are disjoint, otherwise it may well happen that GetFacts will invoke the callback with a fact mult
| 211 | // callback with a fact multiple times. |
| 212 | // MergedStore supports Remove for its write store. |
| 213 | type MergedStore struct { |
| 214 | readStore []ReadOnlyFactStore |
| 215 | writeStore FactStore |
| 216 | } |
| 217 | |
| 218 | // Add implementation that adds to the write store. |
| 219 | func (s MergedStore) Add(atom ast.Atom) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected