Documentation
¶
Index ¶
- func ListEventTypes(ctx context.Context, db *sql.DB) ([]string, error)
- func ListServices(ctx context.Context, db *sql.DB) ([]string, error)
- func NewAgentNoteStore(db *bun.DB) store.AgentNoteStore
- func NewAnalyticsStore(db *bun.DB) store.AnalyticsStore
- func NewAuditStore(db *bun.DB) store.AuditStore
- func NewCodeEntityStore(db *bun.DB) store.CodeEntityStore
- func NewDataSourceStore(db *bun.DB) store.DataSourceStore
- func NewErrorGroupStore(db *bun.DB) store.ErrorGroupStore
- func NewErrorImpactStore(db *bun.DB) store.ErrorImpactStore
- func NewHealthCheckStore(db *bun.DB) store.HealthCheckStore
- func NewMCPActivityStore(db *bun.DB) store.MCPActivityStore
- func NewMetricStore(db *bun.DB) store.MetricStore
- func NewServerStore(db *bun.DB) store.ServerStore
- func NewSessionStore(db *bun.DB) store.SessionStore
- func NewSettingsStore(db *bun.DB) store.SettingsStore
- func NewStores(db *bun.DB, logStore store.LogStore) store.Stores
- func NewTraceStore(db *bun.DB) store.TraceStore
- func NewTrendStore(db *bun.DB) store.TrendStore
- func NewUserStore(db *bun.DB) store.UserStore
- func NewWatchStore(db *bun.DB) store.WatchStore
- func OpenSQLite(path string) (*bun.DB, error)
- func RunSQLiteMigrations(db *bun.DB) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListEventTypes ¶
ListEventTypes returns distinct non-empty event_type values from the logs table.
func ListServices ¶
ListServices returns distinct non-empty service values from the logs table.
func NewAgentNoteStore ¶
func NewAgentNoteStore(db *bun.DB) store.AgentNoteStore
NewAgentNoteStore creates a new AgentNoteStore backed by SQLite.
func NewAnalyticsStore ¶
func NewAnalyticsStore(db *bun.DB) store.AnalyticsStore
NewAnalyticsStore creates an AnalyticsStore backed by SQLite.
func NewAuditStore ¶
func NewAuditStore(db *bun.DB) store.AuditStore
NewAuditStore creates a new AuditStore backed by SQLite.
func NewCodeEntityStore ¶
func NewCodeEntityStore(db *bun.DB) store.CodeEntityStore
NewCodeEntityStore creates a new SQLite-backed CodeEntityStore.
func NewDataSourceStore ¶
func NewDataSourceStore(db *bun.DB) store.DataSourceStore
NewDataSourceStore creates a new DataSourceStore backed by SQLite.
func NewErrorGroupStore ¶
func NewErrorGroupStore(db *bun.DB) store.ErrorGroupStore
NewErrorGroupStore creates a new ErrorGroupStore backed by SQLite.
func NewErrorImpactStore ¶
func NewErrorImpactStore(db *bun.DB) store.ErrorImpactStore
NewErrorImpactStore creates an ErrorImpactStore backed by SQLite.
func NewHealthCheckStore ¶
func NewHealthCheckStore(db *bun.DB) store.HealthCheckStore
NewHealthCheckStore creates a new HealthCheckStore backed by SQLite.
func NewMCPActivityStore ¶
func NewMCPActivityStore(db *bun.DB) store.MCPActivityStore
NewMCPActivityStore creates a new MCPActivityStore backed by SQLite.
func NewMetricStore ¶
func NewMetricStore(db *bun.DB) store.MetricStore
NewMetricStore creates a new MetricStore backed by SQLite.
func NewServerStore ¶
func NewServerStore(db *bun.DB) store.ServerStore
NewServerStore creates a new ServerStore backed by SQLite.
func NewSessionStore ¶
func NewSessionStore(db *bun.DB) store.SessionStore
func NewSettingsStore ¶
func NewSettingsStore(db *bun.DB) store.SettingsStore
NewSettingsStore creates a new SettingsStore backed by SQLite.
func NewStores ¶
NewStores creates all store implementations backed by the given SQLite database. logStore is the segmented log store adapter (passed in from main, not created here).
func NewTraceStore ¶
func NewTraceStore(db *bun.DB) store.TraceStore
NewTraceStore creates a new TraceStore backed by SQLite.
func NewTrendStore ¶
func NewTrendStore(db *bun.DB) store.TrendStore
NewTrendStore creates a TrendStore backed by SQLite.
func NewWatchStore ¶
func NewWatchStore(db *bun.DB) store.WatchStore
NewWatchStore creates a new WatchStore backed by SQLite.
func OpenSQLite ¶
OpenSQLite opens a SQLite database with recommended settings. Returns a *bun.DB wrapping the underlying *sql.DB. Use db.DB to access the raw *sql.DB.
func RunSQLiteMigrations ¶
RunSQLiteMigrations applies all pending SQLite migrations using a simple schema_version tracking table.
Types ¶
This section is empty.
Source Files
¶
- agent_note_store.go
- analytics_store.go
- audit_store.go
- code_entity_store.go
- data_source.go
- environment.go
- error_group_store.go
- error_impact_store.go
- healthcheck_store.go
- helpers.go
- mcp_activity_store.go
- metric_store.go
- parse_time.go
- query_builder.go
- server_store.go
- session_store.go
- settings_store.go
- sqlite.go
- sqlite_errors.go
- stores.go
- trace_store.go
- trend_store.go
- user_store.go
- watch_store.go