Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + func InstallInstructions() map[string]string + func ParseSymbol(symbol string) (scheme, pkg string, descriptors []string, isLocal bool) + func SymbolToHumanReadable(symbol string) string + type DefinitionResult struct + Definition *Occurrence + External bool + Info *SymbolInfo + Symbol string + type FederatedClient struct + func NewFederatedClient(indexerService string, indexerPort, totalShards int) *FederatedClient + func (c *FederatedClient) FindReferences(ctx context.Context, repoName string, repoID int64, filePath string, ...) (json.RawMessage, error) + func (c *FederatedClient) GetStats(ctx context.Context, repoName string, repoID int64) (map[string]any, error) + func (c *FederatedClient) GoToDefinition(ctx context.Context, repoName string, repoID int64, filePath string, ...) (json.RawMessage, error) + func (c *FederatedClient) HasIndex(ctx context.Context, repoName string, repoID int64) (bool, error) + func (c *FederatedClient) ListFiles(ctx context.Context, repoName string, repoID int64, limit int) (json.RawMessage, error) + func (c *FederatedClient) SearchSymbols(ctx context.Context, repoName string, repoID int64, query string, limit int) (json.RawMessage, error) + type IndexOptions struct + ClearFirst bool + CodeHostType string + CodeHostURL string + Token string + type IndexResult struct + Duration time.Duration + Error string + Files int + IndexerOutput string + Language string + Occurrences int + Stats map[string]any + Success bool + Symbols int + type Indexer struct + func NewIndexer(config IndexerConfig, store *Store, logger *zap.Logger) *Indexer + func (i *Indexer) DetectLanguage(repoPath string) (string, error) + func (i *Indexer) DetectLanguages(repoPath string) []string + func (i *Indexer) GetAvailableIndexers() map[string]bool + func (i *Indexer) Index(ctx context.Context, repoID int64, repoPath string, language string) (*IndexResult, error) + func (i *Indexer) IndexWithOptions(ctx context.Context, repoID int64, repoPath string, language string, ...) (*IndexResult, error) + func (i *Indexer) IsIndexerAvailable(language string) bool + func (i *Indexer) SupportedLanguages() []string + type IndexerConfig struct + SCIPGo string + SCIPJava string + SCIPPython string + SCIPRust string + SCIPTypeScript string + Timeout time.Duration + WorkDir string + func DefaultIndexerConfig() IndexerConfig + type Occurrence struct + Context string + EndCol int + EndLine int + FilePath string + Role int + StartCol int + StartLine int + Symbol string + SyntaxKind int + func (o *Occurrence) IsDefinition() bool + func (o *Occurrence) IsImport() bool + func (o *Occurrence) IsReference() bool + func (o *Occurrence) IsWrite() bool + type Parser struct + func NewParser(store *Store) *Parser + func (p *Parser) AppendFromBytesWithPrefix(ctx context.Context, repoID int64, data []byte, pathPrefix string) error + func (p *Parser) ImportFromBytes(ctx context.Context, repoID int64, data []byte) error + func (p *Parser) ImportFromBytesWithPrefix(ctx context.Context, repoID int64, data []byte, pathPrefix string) error + func (p *Parser) ImportFromFile(ctx context.Context, repoID int64, filePath string) error + func (p *Parser) ImportFromReader(ctx context.Context, repoID int64, r io.Reader) error + func (p *Parser) ImportIndex(ctx context.Context, repoID int64, index *scipproto.Index) error + func (p *Parser) ImportIndexWithPrefix(ctx context.Context, repoID int64, index *scipproto.Index, pathPrefix string) error + type ReferencesResult struct + Definition *Occurrence + References []Occurrence + Symbol string + TotalCount int + type Service struct + func NewService(cacheDir string, logger *zap.Logger) (*Service, error) + func NewServiceWithConfig(cacheDir string, indexerCfg IndexerConfig, logger *zap.Logger) (*Service, error) + func (s *Service) ClearIndex(ctx context.Context, repoID int64) error + func (s *Service) Close() error + func (s *Service) DeleteIndex(ctx context.Context, repoID int64) error + func (s *Service) DetectLanguage(repoPath string) (string, error) + func (s *Service) DetectLanguages(repoPath string) []string + func (s *Service) EvictCache(repoID int64) + func (s *Service) FindReferences(ctx context.Context, repoID int64, filePath string, line, col int, limit int) (*ReferencesResult, error) + func (s *Service) GetAvailableIndexers() map[string]bool + func (s *Service) GetOccurrenceAtPosition(ctx context.Context, repoID int64, filePath string, line, col int) (*Occurrence, error) + func (s *Service) GetStats(ctx context.Context, repoID int64) (map[string]any, error) + func (s *Service) GetSymbolInfo(ctx context.Context, repoID int64, symbol string) (*SymbolInfo, error) + func (s *Service) GoToDefinition(ctx context.Context, repoID int64, filePath string, line, col int) (*DefinitionResult, error) + func (s *Service) HasIndex(ctx context.Context, repoID int64) (bool, error) + func (s *Service) ImportFromBytes(ctx context.Context, repoID int64, data []byte) error + func (s *Service) ImportFromFile(ctx context.Context, repoID int64, filePath string) error + func (s *Service) ImportFromReader(ctx context.Context, repoID int64, r io.Reader) error + func (s *Service) Index(ctx context.Context, repoID int64, repoPath string, language string) (*IndexResult, error) + func (s *Service) IndexWithOptions(ctx context.Context, repoID int64, repoPath string, language string, ...) (*IndexResult, error) + func (s *Service) IsIndexerAvailable(language string) bool + func (s *Service) ListFiles(ctx context.Context, repoID int64, limit int) ([]string, error) + func (s *Service) ListIndexedRepoIDs() ([]int64, error) + func (s *Service) SearchSymbols(ctx context.Context, repoID int64, query string, limit int) ([]SymbolSearchResult, error) + func (s *Service) SupportedLanguages() []string + type Store struct + func NewStore(cacheDir string, logger *zap.Logger) (*Store, error) + func (s *Store) ClearIndex(ctx context.Context, repoID int64) error + func (s *Store) Close() error + func (s *Store) DeleteIndex(ctx context.Context, repoID int64) error + func (s *Store) EvictCache(repoID int64) + func (s *Store) FindReferences(ctx context.Context, repoID int64, filePath string, line, col int, limit int) (*ReferencesResult, error) + func (s *Store) GetDefinition(ctx context.Context, repoID int64, symbol string) (*Occurrence, error) + func (s *Store) GetIndexMeta(ctx context.Context, repoID int64) (map[string]string, error) + func (s *Store) GetOccurrenceAtPosition(ctx context.Context, repoID int64, filePath string, line, col int) (*Occurrence, error) + func (s *Store) GetReferenceCount(ctx context.Context, repoID int64, symbol string) (int, error) + func (s *Store) GetReferences(ctx context.Context, repoID int64, symbol string, limit int) ([]Occurrence, error) + func (s *Store) GetSymbolInfo(ctx context.Context, repoID int64, symbol string) (*SymbolInfo, error) + func (s *Store) GoToDefinition(ctx context.Context, repoID int64, filePath string, line, col int) (*DefinitionResult, error) + func (s *Store) HasIndex(ctx context.Context, repoID int64) (bool, error) + func (s *Store) ListFiles(ctx context.Context, repoID int64, limit int) ([]string, error) + func (s *Store) ListIndexedRepoIDs() ([]int64, error) + func (s *Store) SearchSymbols(ctx context.Context, repoID int64, query string, limit int) ([]SymbolSearchResult, error) + func (s *Store) Stats(ctx context.Context, repoID int64) (map[string]any, error) + type SymbolInfo struct + DisplayName string + Documentation string + EnclosingSymbol string + Kind int + Relationships []string + Symbol string + type SymbolSearchResult struct + DisplayName string + Documentation string + FilePath string + Line int + Symbol string