Documentation
¶
Index ¶
- func ReindexProject(p *Project)
- type EntityStats
- type Project
- type Workspace
- func (w *Workspace) Close() error
- func (w *Workspace) FindNodeByName(name string) (*store.Node, string, error)
- func (w *Workspace) FindNodeByPath(path string) (*store.Node, string, error)
- func (w *Workspace) FindProject(name string) *Project
- func (w *Workspace) GetAllFiles(pathFilter, projectFilter string) (map[string][]store.FileInfo, error)
- func (w *Workspace) GetAllStats() (map[string]store.Stats, error)
- func (w *Workspace) GetAllTopLevelDirs(projectFilter string) ([]string, error)
- func (w *Workspace) GetEntityStats() (EntityStats, error)
- func (w *Workspace) IndexAll() error
- func (w *Workspace) Search(query, kind string, limit int) ([]store.SearchResult, error)
- func (w *Workspace) SearchWithOptions(opts store.SearchOptions) ([]store.SearchResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReindexProject ¶
func ReindexProject(p *Project)
Types ¶
type EntityStats ¶ added in v0.2.0
EntityStats aggregates entity graph counts across all workspace projects.
type Workspace ¶
type Workspace struct {
Root string
Projects []*Project
NoGitignore bool
NoHistory bool
SimilarityThreshold float64
}
func (*Workspace) FindNodeByName ¶
func (*Workspace) FindNodeByPath ¶
func (*Workspace) FindProject ¶
func (*Workspace) GetAllFiles ¶
func (*Workspace) GetAllTopLevelDirs ¶ added in v0.3.0
GetAllTopLevelDirs fans out GetTopLevelDirs across all projects, deduplicates the segments, and returns them sorted. Per-project errors are silently ignored, mirroring GetAllFiles' error-handling policy.
func (*Workspace) GetEntityStats ¶ added in v0.2.0
func (w *Workspace) GetEntityStats() (EntityStats, error)
GetEntityStats fan-outs entity stats across all projects. Projects that return errors are skipped (consistent with GetAllStats pattern).
func (*Workspace) SearchWithOptions ¶ added in v0.2.0
func (w *Workspace) SearchWithOptions(opts store.SearchOptions) ([]store.SearchResult, error)
Click to show internal directories.
Click to hide internal directories.