Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + func GetShardForRepo(repoName string, totalShards int) int + type ReplaceExecuteRequest 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 Server struct + func NewServer(cfg ServerConfig, logger *zap.Logger, filesService *files.Service, ...) *Server + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error + type ServerConfig struct + Addr string + ReposPath string + ShardIndex int + TotalShards int + type ShardConfig = sharding.Config + func GetShardConfig() ShardConfig + type Worker struct + func NewWorker(cfg *config.Config, logger *zap.Logger, q *queue.Queue, pool db.Pool, ...) *Worker + func (w *Worker) CloneRepository(ctx context.Context, url string, name string, conn *repos.Connection) (string, error) + func (w *Worker) FetchRepository(ctx context.Context, repoPath string, conn *repos.Connection) error + func (w *Worker) IndexRepository(ctx context.Context, repoPath string, branches []string) error + func (w *Worker) Run(ctx context.Context) error + func (w *Worker) SetSCIPService(svc *scipkg.Service)