Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + type CacheEntry struct + CommitSHA string + CreatedAt time.Time + RepoID int64 + type Service struct + func NewService(cacheDir string) (*Service, error) + func NewServiceWithoutCache() *Service + func (s *Service) Close() error + func (s *Service) ExtractSymbols(ctx context.Context, repoID int64, filePath, commitSHA string, code []byte, ...) ([]Symbol, error) + func (s *Service) GetSymbolAtPosition(ctx context.Context, code []byte, language string, line, col int) (*Symbol, error) + func (s *Service) InvalidateFile(ctx context.Context, repoID int64, filePath string) error + func (s *Service) InvalidateRepo(ctx context.Context, repoID int64) error + func (s *Service) IsLanguageSupported(language string) bool + func (s *Service) SearchSymbols(ctx context.Context, repoID int64, query, kind string, limit int) ([]Symbol, error) + func (s *Service) Stats(ctx context.Context, repoID int64) (map[string]any, error) + func (s *Service) SupportedLanguages() []string + type Symbol struct + Column int + EndColumn int + EndLine int + FilePath string + Kind string + Line int + Name string + Parent string + Signature string + type SymbolCache struct + func NewSymbolCache(cacheDir string) (*SymbolCache, error) + func (c *SymbolCache) Close() error + func (c *SymbolCache) GetSymbols(ctx context.Context, repoID int64, filePath, commitSHA string) ([]Symbol, bool, error) + func (c *SymbolCache) InvalidateFile(ctx context.Context, repoID int64, filePath string) error + func (c *SymbolCache) InvalidateRepo(ctx context.Context, repoID int64) error + func (c *SymbolCache) SearchSymbols(ctx context.Context, repoID int64, query string, kind string, limit int) ([]Symbol, error) + func (c *SymbolCache) SetSymbols(ctx context.Context, repoID int64, filePath, commitSHA string, ...) error + func (c *SymbolCache) Stats(ctx context.Context, repoID int64) (map[string]any, error) + type TreeSitterService struct + func NewTreeSitterService() *TreeSitterService + func (s *TreeSitterService) ExtractSymbols(ctx context.Context, code []byte, lang string) ([]Symbol, error) + func (s *TreeSitterService) GetSymbolAtPosition(ctx context.Context, code []byte, lang string, line, col int) (*Symbol, error) + func (s *TreeSitterService) IsSupported(lang string) bool + func (s *TreeSitterService) SupportedLanguages() []string