workspace

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReindexProject

func ReindexProject(p *Project)

Types

type Project

type Project struct {
	Name                string
	Path                string
	Store               *store.Store
	NoGitignore         bool
	SimilarityThreshold float64
}

type Workspace

type Workspace struct {
	Root                string
	Projects            []*Project
	NoGitignore         bool
	SimilarityThreshold float64
}

func Open

func Open(root string) (*Workspace, error)

func (*Workspace) Close

func (w *Workspace) Close() error

func (*Workspace) FindNodeByName

func (w *Workspace) FindNodeByName(name string) (*store.Node, string, error)

func (*Workspace) FindNodeByPath

func (w *Workspace) FindNodeByPath(path string) (*store.Node, string, error)

func (*Workspace) FindProject

func (w *Workspace) FindProject(name string) *Project

func (*Workspace) GetAllFiles

func (w *Workspace) GetAllFiles(pathFilter string) (map[string][]store.FileInfo, error)

func (*Workspace) GetAllStats

func (w *Workspace) GetAllStats() (map[string]store.Stats, error)

func (*Workspace) GetIncomingEdges

func (w *Workspace) GetIncomingEdges(projectName, nodeID string) ([]store.Edge, error)

func (*Workspace) GetOutgoingEdges

func (w *Workspace) GetOutgoingEdges(projectName, nodeID string) ([]store.Edge, error)

func (*Workspace) IndexAll

func (w *Workspace) IndexAll() error

func (*Workspace) Search

func (w *Workspace) Search(query, kind string, limit int) ([]store.SearchResult, error)

Jump to

Keyboard shortcuts

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