Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + type AddRepositoryRequest struct + Branches []string + CloneURL string + ConnectionID int64 + DefaultBranch string + Name string + type Client struct + func New(baseURL, token string, opts ...ClientOption) *Client + func (c *Client) AddRepository(ctx context.Context, req *AddRepositoryRequest) (*Repository, error) + func (c *Client) ExcludeRepository(ctx context.Context, id int64) error + func (c *Client) FindFiles(ctx context.Context, req *FindFilesRequest) (*FindFilesResponse, error) + func (c *Client) FindRefs(ctx context.Context, req *FindRefsRequest) ([]Reference, error) + func (c *Client) FindSymbols(ctx context.Context, req *FindSymbolsRequest) ([]Symbol, error) + func (c *Client) GetReposStatus(ctx context.Context) (*ReposStatus, error) + func (c *Client) GetRepository(ctx context.Context, id int64) (*Repository, error) + func (c *Client) IncludeRepository(ctx context.Context, id int64) error + func (c *Client) ListRepositories(ctx context.Context, connectionID *int64) (*ListRepositoriesResponse, error) + func (c *Client) RemoveRepository(ctx context.Context, id int64) error + func (c *Client) ReplaceExecute(ctx context.Context, req *ReplaceExecuteRequest) (*ReplaceExecuteResponse, error) + func (c *Client) ReplacePreview(ctx context.Context, req *ReplacePreviewRequest) (*ReplacePreviewResponse, error) + func (c *Client) RestoreRepository(ctx context.Context, id int64) error + func (c *Client) Search(ctx context.Context, req *SearchRequest) (*SearchResponse, error) + func (c *Client) SearchStream(ctx context.Context, req *SearchRequest, callback SearchStreamCallback) error + func (c *Client) SyncAllRepositories(ctx context.Context) error + func (c *Client) SyncRepository(ctx context.Context, id int64) error + type ClientOption func(*Client) + func WithAuthToken(token string) ClientOption + func WithIAPClientID(clientID string) ClientOption + type FileResult struct + FilePath string + Repository string + type FindFilesRequest struct + IsRegex bool + Limit int + Pattern string + Repo string + type FindFilesResponse struct + Files []FileResult + Total int + type FindRefsRequest struct + Language string + Limit int + Repos []string + Symbol string + type FindSymbolsRequest struct + Kind string + Language string + Limit int + Name string + Repos []string + type LineReader struct + func NewLineReader(r io.Reader) *LineReader + func (lr *LineReader) ReadLine() (string, error) + type ListRepositoriesResponse struct + Repos []Repository + TotalCount int + type Reference struct + Column int + Context string + File string + Line int + Repo string + type ReplaceExecuteRequest struct + BranchName string + CaseSensitive bool + FilePatterns []string + IsRegex bool + MRDescription string + MRTitle string + Matches []ReplaceMatch + ReplaceWith string + SearchPattern string + UserTokens map[string]string + type ReplaceExecuteResponse struct + JobID string + Message string + Status string + type ReplaceMatch struct + FilePath string + RepositoryID int64 + RepositoryName string + type ReplacePreviewMatch struct + Column int + Content string + Context ResultContext + File string + Line int + MatchEnd int + MatchStart int + Repo string + RepositoryID int64 + type ReplacePreviewRequest struct + CaseSensitive bool + ContextLines int + FilePatterns []string + IsRegex bool + Languages []string + Limit int + ReplaceWith string + Repos []string + SearchPattern string + type ReplacePreviewResponse struct + Duration string + Matches []ReplacePreviewMatch + TotalCount int + type ReposStatus struct + ReadOnly bool + type Repository struct + Branches []string + CloneURL 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 SearchStreamCallback func(event *SearchStreamEvent) error + type SearchStreamEvent struct + Duration string + Error string + Progress int + Result *SearchResult + TotalCount int + Truncated bool + Type string + type Symbol struct + Column int + File string + Kind string + Language string + Line int + Name string + Repo string + Signature string