store

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package store defines the composite store interface for Sentinel. It embeds all subsystem store interfaces and adds lifecycle methods for migration, health checking, and shutdown.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	recorded.Store
	evalplan.Store
	suite.Store
	testcase.Store
	evalrun.Store
	baseline.Store
	promptversion.Store

	// Migrate runs database migrations. For in-memory stores this is a no-op.
	Migrate(ctx context.Context) error

	// Ping verifies the store connection is alive.
	Ping(ctx context.Context) error

	// Close releases store resources.
	Close() error
}

Store is the composite persistence interface for Sentinel. Implementations (Postgres, SQLite, Memory) satisfy all subsystem stores through a single concrete type.

Directories

Path Synopsis
Package memory provides an in-memory implementation of the Sentinel composite store.
Package memory provides an in-memory implementation of the Sentinel composite store.
Package mongo provides a MongoDB implementation of the Sentinel composite store using grove ORM with the mongodriver.
Package mongo provides a MongoDB implementation of the Sentinel composite store using grove ORM with the mongodriver.
Package postgres provides a PostgreSQL implementation of the Sentinel composite store using grove ORM with Go-based migrations.
Package postgres provides a PostgreSQL implementation of the Sentinel composite store using grove ORM with Go-based migrations.
Package sqlite provides a SQLite implementation of the Sentinel composite store using grove ORM with the sqlitedriver.
Package sqlite provides a SQLite implementation of the Sentinel composite store using grove ORM with the sqlitedriver.
Package storetest is the conformance suite every Sentinel store backend runs.
Package storetest is the conformance suite every Sentinel store backend runs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL