package scraper import "github.com/tradarr/backend/internal/models" type Registry struct { scrapers map[string]Scraper repo *models.Repository } func NewRegistry(repo *models.Repository) *Registry { return &Registry{ scrapers: map[string]Scraper{}, repo: repo, } } func (r *Registry) Register(s Scraper) { r.scrapers[s.Name()] = s }