Documentation
¶
Overview ¶
Package index is a memory-only full-text index of skills (spec 125, D12).
It is built from scratch by Replace and never written to disk. It uses the same analyzers as the tool index, so ranking behaves like retrieve_tools. The package imports nothing from this module: the runtime decides which skills go in and re-checks every hit against live state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("skills index is closed")
ErrClosed is returned by a closed index.
Functions ¶
This section is empty.
Types ¶
type Doc ¶
type Doc struct {
ID, Server, Path, URI, Name, Description string
}
Doc is one skill to index. ID is "server:skill-path"; URI is the skill's address on its server, which is the key of its record.
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index holds the current generation; Replace swaps it atomically.
Click to show internal directories.
Click to hide internal directories.