add scraping the torrent topics rss files

This commit is contained in:
2024-09-09 08:54:29 +03:00
parent 20c4f25c55
commit e587e645fc
26 changed files with 714 additions and 22 deletions

View File

@@ -0,0 +1,23 @@
package repository
import (
"github.com/jmoiron/sqlx"
"github.com/spf13/viper"
"git.amok.space/yevhen/resource-scraper/types"
)
type Repository struct {
types.Rutracker
}
func New(db *sqlx.DB) *Repository {
switch viper.GetString("scope") {
case types.RuTracker:
return &Repository{
Rutracker: NewRutracker(db),
}
}
return &Repository{}
}