MCPcopy
hub / github.com/google/mangle / MergedStore

Struct MergedStore

factstore/factstore.go:213–216  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

211// callback with a fact multiple times.
212// MergedStore supports Remove for its write store.
213type MergedStore struct {
214 readStore []ReadOnlyFactStore
215 writeStore FactStore
216}
217
218// Add implementation that adds to the write store.
219func (s MergedStore) Add(atom ast.Atom) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected