Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrManagerClosed = errors.New("semantic runtime manager is shut down") ErrLeaseClosed = errors.New("semantic runtime lease is closed") ErrRootRetired = errors.New("semantic runtime root was retired") ErrRetainLoadGuardRequired = errors.New("semantic runtime cold load requires a retained generation guard") )
Functions ¶
This section is empty.
Types ¶
type Lease ¶
type Lease struct {
// contains filtered or unexported fields
}
Lease is one reference to an immutable cached root.
func (*Lease) Search ¶
func (l *Lease) Search(ctx context.Context, query []float32, options semanticindex.SearchOptions) ([]semanticindex.Hit, semanticindex.Status, error)
type LoadWaitTimeoutError ¶
LoadWaitTimeoutError reports that a caller stopped waiting for a shared load. The manager-owned load may still finish and populate the warm cache.
func (*LoadWaitTimeoutError) Error ¶
func (e *LoadWaitTimeoutError) Error() string
func (*LoadWaitTimeoutError) Timeout ¶
func (e *LoadWaitTimeoutError) Timeout() bool
type LoadedSearcher ¶
type LoadedSearcher struct {
Searcher semanticindex.Searcher
Close func() error
}
LoadedSearcher couples a searcher to the callback that releases its native resources.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager owns process-local immutable roots for one runtime/store lifetime.
type RetainLoadGuard ¶
RetainLoadGuard retains the caller's already-acquired shared-generation guard for a detached cold load.