Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + type Config struct + CheckInterval time.Duration + DefaultPollInterval time.Duration + Enabled bool + IndexPath string + JobRetentionPeriod time.Duration + MaxConcurrentChecks int + OrphanCleanupInterval time.Duration + PendingJobTimeout time.Duration + ReposPath string + StaleThreshold time.Duration + type RepoNeedingSync struct + Branches []string + CloneURL string + ConnectionID int64 + DefaultBranch string + ID int64 + IndexStatus string + LastIndexed *time.Time + LocalPath string + Name string + PollInterval *time.Duration + type Scheduler struct + func New(cfg Config, pool db.Pool, q *queue.Queue, redisClient *redis.Client, ...) *Scheduler + func (s *Scheduler) GetStats(ctx context.Context) (*Stats, error) + func (s *Scheduler) ManualSync(ctx context.Context, repoID int64) error + func (s *Scheduler) SetPollInterval(ctx context.Context, repoID int64, interval time.Duration) error + func (s *Scheduler) SetSCIPService(svc *scip.Service) + func (s *Scheduler) Start(ctx context.Context) error + func (s *Scheduler) Stop() + type Stats struct + FailedCount int + IndexedCount int + IndexingCount int + NextCheckAt time.Time + PendingCount int + StaleCount int + TotalCount int