Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + const CloneTimeout + const DefaultConcurrency + const MaxFileSize + const PushTimeout + type ExecuteOptions struct + BranchName string + CaseSensitive bool + IsRegex bool + MRDescription string + MRTitle string + Matches []queue.ReplaceMatch + ReplaceWith string + ReposReadOnly bool + SearchPattern string + UserTokens map[string]string + type ExecuteRequest struct + BranchName string + CaseSensitive bool + IsRegex bool + MRDescription string + MRTitle string + Matches []queue.ReplaceMatch + ReplaceWith string + ReposReadOnly bool + SearchPattern string + UserTokens map[string]string + type ExecuteResult struct + ModifiedFiles int + RepoResults []RepoResult + TotalFiles int + type FederatedClient struct + func NewFederatedClient(indexerService string, indexerPort, totalShards int) *FederatedClient + func (c *FederatedClient) Execute(ctx context.Context, opts ExecuteOptions) (*ExecuteResult, error) + func (c *FederatedClient) GetShardForRepo(repoName string) int + type FileMatch struct + FilePath string + Matches int + Repo string + type PrecomputedMatch struct + FilePath string + RepositoryID int64 + RepositoryName string + type ReplaceOptions struct + BranchName string + CaseSensitive bool + Concurrency int + ContextLines int + DryRun bool + FilePatterns []string + IsRegex bool + Languages []string + Limit int + MRDescription string + MRTitle string + PrecomputedMatches []PrecomputedMatch + ReplaceWith string + ReposReadOnly bool + SearchPattern string + UserTokens map[string]string + type ReplacementResult struct + Error string + FilesModified int + MatchCount int + MergeRequest *codehost.MergeRequest + RepositoryID int64 + RepositoryName string + type RepoResult struct + Error string + FilesModified int + MRUrl string + RepositoryID int64 + RepositoryName string + type Service struct + func NewService(searchService *search.Service, repoService *repos.Service, workDir string, ...) *Service + func (s *Service) Execute(ctx context.Context, opts ReplaceOptions) ([]ReplacementResult, error) + func (s *Service) ExecuteFromOptions(ctx context.Context, opts ExecuteOptions) (*ExecuteResult, error) + func (s *Service) Preview(ctx context.Context, opts ReplaceOptions) (*search.SearchResults, error) + type ServiceConfig struct + CloneTimeout time.Duration + Concurrency int + MaxFileSize int64 + PushTimeout time.Duration + type ShardResult struct + Error error + Result *ExecuteResult + Shard int