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. |
Click to show internal directories.
Click to hide internal directories.