store

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package store defines the aggregate persistence interface that composes all domain-specific store interfaces. Implementations include in-memory (for testing), PostgreSQL (production), and SQLite (dev/standalone).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	instance.Store
	deploy.Store
	health.Store
	telemetry.Store
	network.Store
	secrets.Store
	admin.Store

	// Migrate runs all schema migrations.
	Migrate(ctx context.Context) error

	// Ping checks database connectivity.
	Ping(ctx context.Context) error

	// Close closes the store connection.
	Close() error
}

Store is the aggregate persistence interface. Each subsystem store is a composable interface.

Directories

Path Synopsis
Package badger provides a Badger DB implementation of the store.Store interface.
Package badger provides a Badger DB implementation of the store.Store interface.
Package bun provides a Bun ORM implementation of the store.Store interface.
Package bun provides a Bun ORM implementation of the store.Store interface.
Package memory provides an in-memory implementation of the store.Store interface.
Package memory provides an in-memory implementation of the store.Store interface.
Package mongo provides a MongoDB implementation of the store.Store interface.
Package mongo provides a MongoDB implementation of the store.Store interface.
Package postgres implements the ctrlplane store interface using PostgreSQL.
Package postgres implements the ctrlplane store interface using PostgreSQL.
Package sqlite implements the ctrlplane store interface using SQLite.
Package sqlite implements the ctrlplane store interface using SQLite.

Jump to

Keyboard shortcuts

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