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

Struct TemporalFactStoreAdapter

factstore/temporal.go:400–403  ·  view source on GitHub ↗

TemporalFactStoreAdapter wraps a TemporalFactStore to provide a standard FactStore interface. Facts are returned without temporal information (using the underlying atom only). This allows temporal stores to be used where a regular FactStore is expected.

Source from the content-addressed store, hash-verified

398// temporal information (using the underlying atom only).
399// This allows temporal stores to be used where a regular FactStore is expected.
400type TemporalFactStoreAdapter struct {
401 temporal TemporalFactStore
402 queryAt *time.Time // If set, only return facts valid at this time
403}
404
405// Ensure TemporalFactStoreAdapter implements FactStore.
406var _ FactStore = &TemporalFactStoreAdapter{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected