Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageRow ¶ added in v0.3.14
MessageRow is one indexed transcript line for scroll / browse.
type Service ¶
type Service interface {
// SyncSessions ingests or refreshes index entries from the sessions source
// configured on the implementation (tenant-scoped via ctx).
SyncSessions(ctx context.Context) error
// Search runs FTS over indexed messages for the current workspace database.
Search(ctx context.Context, query string, limit int) ([]Hit, error)
// ListSessions returns recently active sessions, most recently active first.
ListSessions(ctx context.Context, limit int) ([]SessionSummary, error)
// ScrollMessages returns messages around anchorSeq in one session (before/after counts).
ScrollMessages(ctx context.Context, sessionID string, anchorSeq int64, before, after int) ([]MessageRow, error)
}
Service indexes durable session logs and supports full-text search per tenant workspace.
type SessionSummary ¶ added in v0.3.14
type SessionSummary struct {
SessionID string
MessageCount int
LastSeq int64
// LastMod is the session JSONL mtime at last index sync (append activity).
LastMod time.Time
// Current marks the session the caller is running in, when known.
Current bool
}
SessionSummary is a indexed session row for discovery / browse.
Click to show internal directories.
Click to hide internal directories.