Documentation
¶
Index ¶
- func CanonicalRepoPath(path string) (string, error)
- func DBFileNameForRepo(repoRoot string) string
- type FileRecord
- type RelatedTest
- type ScanSummary
- type Store
- func (s *Store) BeginScan(ctx context.Context, repoID int64, kind string) (int64, time.Time, error)
- func (s *Store) Close() error
- func (s *Store) CompleteScan(ctx context.Context, scanID int64, summary ScanSummary, started time.Time, ...) error
- func (s *Store) DrainDirtyFiles(ctx context.Context, repoID int64) ([]string, error)
- func (s *Store) ExistingFiles(ctx context.Context, repoID int64) (map[string]FileRecord, error)
- func (s *Store) FindCallees(ctx context.Context, repoID int64, symbol string, symbolID int64, limit int) ([]graph.Symbol, error)
- func (s *Store) FindCallers(ctx context.Context, repoID int64, symbol string, symbolID int64, limit int) ([]graph.Symbol, error)
- func (s *Store) FindSymbol(ctx context.Context, repoID int64, query string, limit int) ([]graph.Symbol, error)
- func (s *Store) ImpactRadius(ctx context.Context, repoID int64, symbols []string, files []string, depth int) (map[string]any, error)
- func (s *Store) MarkMissingDeleted(ctx context.Context, repoID, scanID int64, seen map[string]struct{}) (int, error)
- func (s *Store) Migrate() error
- func (s *Store) QueueDirtyFile(ctx context.Context, repoID int64, path, reason string) error
- func (s *Store) RelatedTests(ctx context.Context, repoID int64, symbol, file string, limit int) ([]RelatedTest, error)
- func (s *Store) ReplaceFileGraph(ctx context.Context, repoID, scanID int64, path, language string, ...) error
- func (s *Store) ResolveEdges(ctx context.Context, repoID int64) error
- func (s *Store) SearchSymbols(ctx context.Context, repoID int64, query string, limit int) ([]graph.Symbol, error)
- func (s *Store) SemanticSearch(ctx context.Context, repoID int64, query string, limit int) ([]map[string]any, error)
- func (s *Store) Stats(ctx context.Context, repoID int64) (graph.Stats, error)
- func (s *Store) TouchFileMetadata(ctx context.Context, repoID, scanID int64, path, language string, ...) error
- func (s *Store) UpsertRepo(ctx context.Context, rootPath string) (graph.Repo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalRepoPath ¶
func DBFileNameForRepo ¶
Types ¶
type FileRecord ¶
type RelatedTest ¶
type ScanSummary ¶
type ScanSummary struct {
RepoID int64 `json:"repo_id"`
ScanID int64 `json:"scan_id"`
FilesSeen int `json:"files_seen"`
FilesIndexed int `json:"files_indexed"`
FilesSkipped int `json:"files_skipped"`
FilesChanged int `json:"files_changed"`
FilesDeleted int `json:"files_deleted"`
DurationMS int64 `json:"duration_ms"`
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CompleteScan ¶
func (*Store) DrainDirtyFiles ¶
func (*Store) ExistingFiles ¶
func (*Store) FindCallees ¶
func (*Store) FindCallers ¶
func (*Store) FindSymbol ¶
func (*Store) ImpactRadius ¶
func (*Store) MarkMissingDeleted ¶
func (*Store) QueueDirtyFile ¶
func (*Store) RelatedTests ¶
func (*Store) ReplaceFileGraph ¶
func (*Store) SearchSymbols ¶
func (*Store) SemanticSearch ¶
func (*Store) TouchFileMetadata ¶
Click to show internal directories.
Click to hide internal directories.