TeeingStore is an implementation of FactStore that directs all writes to an output store, while distributing reads over a read-only base store and the output store.
| 306 | // an output store, while distributing reads over a read-only base store and |
| 307 | // the output store. |
| 308 | type TeeingStore struct { |
| 309 | base FactStore |
| 310 | Out FactStoreWithRemove |
| 311 | } |
| 312 | |
| 313 | // Ensure that TeeingStore implements the FactStore interface. |
| 314 | var _ FactStoreWithRemove = TeeingStore{NewSimpleInMemoryStore(), NewSimpleInMemoryStore()} |
nothing calls this directly
no outgoing calls
no test coverage detected