Documentation
¶
Overview ¶
Package storage provides a unified backend selector for all AILANG databases. It enables pluggable storage backends via the AILANG_STORAGE environment variable:
- "local" (default): SQLite databases on local filesystem
- "gcp": Firestore (coordinator + messaging) + BigQuery (observatory)
- "hybrid": SQLite for coordinator/messaging, BigQuery for observatory
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backends ¶
type Backends struct {
Coordinator coordinator.Store
Messaging messaging.MessageStore
Observatory observatory.Backend
}
Backends holds all three database backends used by AILANG services.
func NewBackends ¶
NewBackends creates all three backends based on the AILANG_STORAGE environment variable.
func NewGCPBackends ¶
NewGCPBackends creates all three backends using GCP services (Firestore). Requires AILANG_CLOUD_PROJECT to be set.
func NewHybridBackends ¶
NewHybridBackends creates a hybrid setup: SQLite for coordinator/messaging, BigQuery for observatory (analytics scale).
func NewSQLiteBackends ¶
NewSQLiteBackends creates all three backends using local SQLite databases.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package firestore provides Firestore-backed implementations of AILANG storage interfaces.
|
Package firestore provides Firestore-backed implementations of AILANG storage interfaces. |
|
Package migrate provides tools for migrating AILANG data between storage backends.
|
Package migrate provides tools for migrating AILANG data between storage backends. |