Documentation
¶
Overview ¶
Package telemetrydb owns append-only observability independently of the core database.
Index ¶
- func MigrationStream() store.MigrationStream
- func Path(globalPath string) string
- type OpenOption
- type Store
- func (s *Store) Close(ctx context.Context) error
- func (s *Store) DB() *sql.DB
- func (s *Store) DeleteScope(ctx context.Context, kind, id string) (int64, error)
- func (s *Store) EventSummaryHeadSequence(ctx context.Context) (int64, error)
- func (s *Store) Status(ctx context.Context) (store.StreamStatus, error)
- func (s *Store) Sweep(ctx context.Context, cutoff time.Time) (int64, error)
- func (s *Store) Write(ctx context.Context, summaries []store.EventSummary, ...) error
- func (s *Store) WriteOutbox(ctx context.Context, summaries []store.EventSummary) []error
- func (s *Store) WriteSuggestion(ctx context.Context, summary store.EventSummary, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrationStream ¶
func MigrationStream() store.MigrationStream
Types ¶
type OpenOption ¶
type OpenOption func(*openConfig)
OpenOption configures telemetry storage maintenance.
func WithCleanupBatchSize ¶
func WithCleanupBatchSize(size int64) OpenOption
WithCleanupBatchSize overrides the 256-row default; nonpositive values are ignored.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store acknowledges telemetry only after its own WAL commits.
func Open ¶
Open separates FULL-synchronous ingestion from observation and WAL-maintenance connections.
func (*Store) DeleteScope ¶
func (*Store) EventSummaryHeadSequence ¶
EventSummaryHeadSequence reads the physical ledger without logical deletion filters.
func (*Store) WriteOutbox ¶
Click to show internal directories.
Click to hide internal directories.