Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + type APIError struct + Body string + StatusCode int + func (e *APIError) Error() string + func (e *APIError) IsNotFound() bool + type BlobResponse struct + Binary bool + Content string + Language string + Path string + Ref string + Size int64 + type Client struct + func New(baseURL, authToken string) *Client + func (c *Client) FindReferences(ctx context.Context, repoID int64, file string, line, column, limit int) (*FindReferencesResponse, error) + func (c *Client) GetBranchesAndTags(ctx context.Context, repoID int64) (*RefsResponse, error) + func (c *Client) GetFileContent(ctx context.Context, repoID int64, path, ref string) (*BlobResponse, error) + func (c *Client) GetFileTree(ctx context.Context, repoID int64, path, ref string) (*TreeResponse, error) + func (c *Client) GoToDefinition(ctx context.Context, repoID int64, file string, line, column int) (*GoToDefinitionResponse, error) + func (c *Client) ListRepos(ctx context.Context, params ListReposParams) (*ListReposResponse, error) + func (c *Client) Search(ctx context.Context, req *SearchRequest) (*SearchResponse, error) + func (c *Client) SearchSymbols(ctx context.Context, repoID int64, query string, limit int) (*SearchSymbolsResponse, error) + type FindReferencesResponse struct + Definition *Occurrence + Found bool + References []Occurrence + Symbol string + TotalCount int + type GoToDefinitionResponse struct + Definition *Occurrence + External bool + Found bool + Info *SymbolInfo + Symbol string + type ListReposParams struct + Limit int + Offset int + Search string + Status string + type ListReposResponse struct + HasMore bool + Limit int + Offset int + Repos []Repository + TotalCount int + type Occurrence struct + Context string + EndCol int + EndLine int + FilePath string + StartCol int + StartLine int + Symbol string + type RefsResponse struct + Branches []string + DefaultBranch string + Tags []string + type Repository struct + Branches []string + CloneURL string + DefaultBranch string + Deleted bool + Excluded bool + ID int64 + LastIndexed string + Name string + Status string + type ResultContext struct + After []string + Before []string + type SearchRequest struct + CaseSensitive bool + ContextLines int + FilePatterns []string + IsRegex bool + Languages []string + Limit int + Query string + Repos []string + type SearchResponse struct + Duration string + Results []SearchResult + TotalCount int + Truncated bool + type SearchResult struct + Column int + Content string + Context ResultContext + File string + Language string + Line int + MatchEnd int + MatchStart int + Repo string + type SearchSymbolsResponse struct + Count int + Results []SymbolSearchResult + type SymbolInfo struct + DisplayName string + Documentation string + Symbol string + type SymbolSearchResult struct + DisplayName string + Documentation string + FilePath string + Line int + Symbol string + type TreeEntry struct + Language string + Name string + Path string + Size int64 + Type string + type TreeResponse struct + Entries []TreeEntry + Path string + Ref string