Versions in this module Expand all Collapse all v0 v0.0.2 Sep 12, 2026 v0.0.1 Sep 11, 2026 Changes in this version + const MaxFactValueLen + const MaxFactsPerProject + var ErrProjectFull = errors.New("memory: project fact count exceeds MaxFactsPerProject") + var ErrValueTooLong = errors.New("memory: value exceeds MaxFactValueLen") + type Fact struct + Key string + UpdatedAt time.Time + Value string + type MemoryStore struct + func NewMemoryStore() *MemoryStore + func (s *MemoryStore) Delete(_ context.Context, projectName, key string) error + func (s *MemoryStore) Get(_ context.Context, projectName, key string) (Fact, bool, error) + func (s *MemoryStore) List(_ context.Context, projectName string) ([]Fact, error) + func (s *MemoryStore) Upsert(_ context.Context, projectName, key, value string) error + type PostgresStore struct + func NewPostgresStore(ctx context.Context, databaseURL string, logger *slog.Logger) (*PostgresStore, error) + func (s *PostgresStore) Close() + func (s *PostgresStore) Delete(ctx context.Context, projectName, key string) error + func (s *PostgresStore) Get(ctx context.Context, projectName, key string) (Fact, bool, error) + func (s *PostgresStore) List(ctx context.Context, projectName string) ([]Fact, error) + func (s *PostgresStore) Upsert(ctx context.Context, projectName, key, value string) error + type Store interface + Delete func(ctx context.Context, projectName, key string) error + Get func(ctx context.Context, projectName, key string) (fact Fact, ok bool, err error) + List func(ctx context.Context, projectName string) ([]Fact, error) + Upsert func(ctx context.Context, projectName, key, value string) error