Documentation
¶
Overview ¶
Package search defines the session and entry search contracts exported by the agent package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntrySearchHit ¶
type EntrySearchHit struct {
SessionID string
EntryID string
Timestamp float64
Snippet *string
Score *float64
}
EntrySearchHit is one entry-level search result.
type EntrySearchService ¶
type EntrySearchService interface {
SearchEntries(query SearchQuery) ([]EntrySearchHit, error)
}
EntrySearchService is the optional entry-search capability of a SessionSearchService implementation.
type SearchQuery ¶
SearchQuery contains the text to search and an optional result limit.
type SessionSearchHit ¶
type SessionSearchHit struct {
SessionID string
Score *float64
Top *SessionSearchTop
}
SessionSearchHit is one session-level search result.
type SessionSearchService ¶
type SessionSearchService interface {
SearchSessions(query SearchQuery) ([]SessionSearchHit, error)
Sync() error
Notify(sessionID string)
Remove(sessionID string) error
Close() error
}
SessionSearchService searches and maintains a session search index. Asynchronous upstream operations block until completion and return errors.
type SessionSearchTop ¶
SessionSearchTop is the highest-ranking entry attached to a session hit.
Click to show internal directories.
Click to hide internal directories.