resource-scraper/pkg/service/service.go

19 lines
385 B
Go

package service
import (
"git.amok.space/yevhen/resource-scraper/pkg/repository"
"git.amok.space/yevhen/resource-scraper/types/interface"
)
type Service struct {
_interface.Rutracker
_interface.Prescene
}
func New(repos *repository.Repository) *Service {
return &Service{
Rutracker: NewRutrackerService(repos.Rutracker),
Prescene: NewPresceneService(repos.Prescene),
}
}