Documentation
¶
Overview ¶
Package filefinder provides an in-memory file index with trigram matching, fuzzy search, and filesystem watching. It is designed to power file-finding features on workspace agents.
Index ¶
- Variables
- type Engine
- func (e *Engine) AddRoot(ctx context.Context, root string) error
- func (e *Engine) Close() error
- func (e *Engine) Rebuild(ctx context.Context, root string) error
- func (e *Engine) RemoveRoot(root string) error
- func (e *Engine) Search(_ context.Context, query string, opts SearchOptions) ([]Result, error)
- type FSEvent
- type FSEventOp
- type FileFlag
- type Index
- type Result
- type SearchOptions
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = xerrors.New("engine is closed")
ErrClosed is returned when operations are attempted on a closed engine.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is the main file finder. Safe for concurrent use.
func (*Engine) RemoveRoot ¶
RemoveRoot stops watching a root and removes it.
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index is an append-only in-memory file index with snapshot support.
type SearchOptions ¶
SearchOptions controls search behavior.
func DefaultSearchOptions ¶
func DefaultSearchOptions() SearchOptions
DefaultSearchOptions returns sensible default search options.
Click to show internal directories.
Click to hide internal directories.