22 lines
435 B
Go
22 lines
435 B
Go
package repository
|
|
|
|
import (
|
|
"github.com/jmoiron/sqlx"
|
|
|
|
"git.amok.space/yevhen/resource-scraper/types/interface"
|
|
)
|
|
|
|
type Repository struct {
|
|
_interface.Rutracker
|
|
_interface.Prescene
|
|
_interface.ShareTheBrutality
|
|
}
|
|
|
|
func New(db *sqlx.DB) *Repository {
|
|
return &Repository{
|
|
Rutracker: NewRutrackerRepository(db),
|
|
Prescene: NewPresceneRepository(db),
|
|
ShareTheBrutality: NewShareTheBrutalityRepository(db),
|
|
}
|
|
}
|