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

Struct TeeingStore

factstore/factstore.go:308–311  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

306// an output store, while distributing reads over a read-only base store and
307// the output store.
308type TeeingStore struct {
309 base FactStore
310 Out FactStoreWithRemove
311}
312
313// Ensure that TeeingStore implements the FactStore interface.
314var _ FactStoreWithRemove = TeeingStore{NewSimpleInMemoryStore(), NewSimpleInMemoryStore()}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected