Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + func DetectLanguage(filename string, content []byte) string + func MapToCodeMirrorMode(language string) string + type BlobResponse struct + Binary bool + Content string + Language string + Path string + Size int64 + type FederatedClient struct + func NewFederatedClient(indexerService string, indexerPort, totalShards int) *FederatedClient + func (c *FederatedClient) GetBlob(ctx context.Context, repoName, path, ref string) (*BlobResponse, error) + func (c *FederatedClient) GetBranches(ctx context.Context, repoName string) ([]string, error) + func (c *FederatedClient) GetRawBlob(ctx context.Context, repoName, path, ref string) (io.ReadCloser, int64, error) + func (c *FederatedClient) GetShardForRepo(repoName string) int + func (c *FederatedClient) GetTags(ctx context.Context, repoName string) ([]string, error) + func (c *FederatedClient) ListTree(ctx context.Context, repoName, path, ref string) ([]TreeEntry, error) + func (c *FederatedClient) RepoExists(ctx context.Context, repoName string) (bool, error) + type FileSymbol struct + Column int + Kind string + Line int + Name string + Parent string + Signature string + func ExtractSymbols(content, language string) []FileSymbol + type Service struct + func NewService(reposPath string) *Service + func (s *Service) GetBlob(ctx context.Context, repoName, path, ref string) (*BlobResponse, error) + func (s *Service) GetBranches(ctx context.Context, repoName string) ([]string, error) + func (s *Service) GetRawBlob(ctx context.Context, repoName, path, ref string) (io.ReadCloser, int64, error) + func (s *Service) GetRepoPath(repoName string) string + func (s *Service) GetTags(ctx context.Context, repoName string) ([]string, error) + func (s *Service) ListTree(ctx context.Context, repoName, path, ref string) ([]TreeEntry, error) + func (s *Service) RepoExists(repoName string) bool + type TreeEntry struct + Language string + Name string + Path string + Size int64 + Type string