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

Method GetFacts

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

Returns a stream of facts that match a given atom. It takes a callback to process results. If the callback returns an error, or it encounters a malformed atom, scanning stops and that error is returned.

(ast.Atom, func(ast.Atom) error)

Source from the content-addressed store, hash-verified

29 // to process results. If the callback returns an error, or it encounters
30 // a malformed atom, scanning stops and that error is returned.
31 GetFacts(ast.Atom, func(ast.Atom) error) error
32
33 // Contains returns true if given atom is already present in store.
34 // This is a convenience method that has a straightforward implementation

Callers 15

QueryMethod · 0.65
GetAllFactsFunction · 0.65
MergeMethod · 0.65
GetFactsMethod · 0.65
GetFactsMethod · 0.65
MergeMethod · 0.65
MergeMethod · 0.65
MergeMethod · 0.65
GetFactsMethod · 0.65
WriteToMethod · 0.65
TestRoundTripFunction · 0.65

Implementers 9

SimpleInMemoryStorefactstore/factstore.go
MergedStorefactstore/factstore.go
TeeingStorefactstore/factstore.go
IndexedInMemoryStorefactstore/factstore.go
MultiIndexedInMemoryStorefactstore/factstore.go
MultiIndexedArrayInMemoryStorefactstore/factstore.go
ConcurrentFactStorefactstore/factstore.go
SimpleColumnStorefactstore/simplecolumn.go
TemporalFactStoreAdapterfactstore/temporal.go

Calls

no outgoing calls

Tested by 3

TestRoundTripFunction · 0.52
TestAddContainsRemoveFunction · 0.52