tasks

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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

New constructs a Searcher.

func (*Searcher) Index

func (s *Searcher) Index() types.SearchIndex

Index implements search.Searcher.

func (*Searcher) Search

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL