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

Interface FactStore

factstore/factstore.go:48–56  ·  view source on GitHub ↗

FactStore provides access to a set of facts.

Source from the content-addressed store, hash-verified

46
47// FactStore provides access to a set of facts.
48type 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.
59func GetAllFacts(fs FactStore, fn func(ast.Atom) error) error {

Callers 14

declarationMappingsMethod · 0.65
AddMethod · 0.65
AddMethod · 0.65
AddMethod · 0.65
ReadIntoMethod · 0.65
TestAddContainsRemoveFunction · 0.65
evalStrataMethod · 0.65
TestMergeFunction · 0.65
MergeMethod · 0.65
MergeMethod · 0.65
MergeMethod · 0.65

Implementers 10

SimpleInMemoryStorefactstore/factstore.go
MergedStorefactstore/factstore.go
TeeingStorefactstore/factstore.go
IndexedInMemoryStorefactstore/factstore.go
MultiIndexedInMemoryStorefactstore/factstore.go
MultiIndexedArrayInMemoryStorefactstore/factstore.go
ConcurrentFactStorefactstore/factstore.go
TemporalStorefactstore/temporal.go
TemporalFactStoreAdapterfactstore/temporal.go
TeeingTemporalStorefactstore/temporal.go

Calls

no outgoing calls

Tested by

no test coverage detected