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

Function NewTemporalFactStoreAdapterAt

factstore/temporal.go:416–418  ·  view source on GitHub ↗

NewTemporalFactStoreAdapterAt creates an adapter that only exposes facts valid at the specified time.

(temporal TemporalFactStore, t time.Time)

Source from the content-addressed store, hash-verified

414// NewTemporalFactStoreAdapterAt creates an adapter that only exposes facts
415// valid at the specified time.
416func NewTemporalFactStoreAdapterAt(temporal TemporalFactStore, t time.Time) *TemporalFactStoreAdapter {
417 return &TemporalFactStoreAdapter{temporal: temporal, queryAt: &t}
418}
419
420// Add adds a fact as eternal (valid for all time).
421// Note: errors from temporal store are logged but not returned per FactStore interface.

Callers 1

Calls

no outgoing calls

Tested by 1