store

package
v0.0.0-...-c848cff Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package store defines the composite persistence interface for Tether.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	tenant.Store
	device.Store

	// Migrate creates or upgrades the schema. It is safe to call repeatedly.
	Migrate(ctx context.Context) error

	// Ping checks that the backend is reachable.
	Ping(ctx context.Context) error

	// Close releases the backend's resources.
	Close() error
}

Store composes the tenant and device stores with lifecycle methods. Backends live in store/memory, store/sqlite and store/postgres, and each one must pass store/storetest.Run.

Directories

Path Synopsis
Package memory implements store.Store in process memory.
Package memory implements store.Store in process memory.
Package postgres implements store.Store on PostgreSQL through Grove.
Package postgres implements store.Store on PostgreSQL through Grove.
Package sqlite implements store.Store on SQLite through Grove.
Package sqlite implements store.Store on SQLite through Grove.
Package storetest holds the conformance suite every store backend must pass.
Package storetest holds the conformance suite every store backend must pass.

Jump to

Keyboard shortcuts

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