Documentation
¶
Overview ¶
Package tasks implements the `search.tasks` runtime-side index — a server-enforced search over task lifecycle records, scoped to the caller's identity triple unless the `auth.ScopeAdmin` claim is present.
The Searcher consumes the public `tasks.TaskRegistry.List` surface per session, fanning across the sessions visible to the caller (via `sessions.SessionLister`). For deployments with millions of sessions this is a linear scan; the wire shape stays index-strategy-agnostic so a post-V1 FTS sidecar can swap in without a Protocol change.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Searcher ¶
type Searcher struct {
// contains filtered or unexported fields
}
Searcher serves the `search.tasks` index.
func New ¶
func New(lister sessionsubsys.SessionLister, taskReg tasksubsys.TaskRegistry, deps search.Deps) (*Searcher, error)
New constructs a Searcher.
func (*Searcher) Index ¶
func (s *Searcher) Index() types.SearchIndex
Index implements search.Searcher.
func (*Searcher) Search ¶
func (s *Searcher) Search(ctx context.Context, req types.SearchRequest) (types.SearchResponse, error)
Search implements search.Searcher. Free-text query matches against the task's ID, Description, Query, Kind. Facets honoured: `tasks.status`, `tasks.kind`. Time-window applies to UpdatedAt.