Versions in this module Expand all Collapse all v0 v0.0.2 Jun 16, 2026 v0.0.1 Jun 12, 2026 Changes in this version + var ErrFactNotFound = engine.ErrFactNotFound + func As[T any](s *Snapshot, query string) (T, error) + type Engine struct + func New(opts ...Option) (*Engine, error) + func (e *Engine) Discover(ctx context.Context, queries ...string) (*Snapshot, error) + type Option func(*engine.EngineConfig) error + func WithCache() Option + func WithConfigFile(path string) Option + func WithExternalDirs(dirs ...string) Option + func WithFact(name string, resolve func(ctx context.Context) (any, error)) Option + func WithLogger(logger *slog.Logger) Option + func WithSystemDefaults() Option + type Snapshot struct + func (s *Snapshot) All() iter.Seq2[string, any] + func (s *Snapshot) Tree() map[string]any + func (s *Snapshot) Value(query string) (any, error)