sorarebuddy/sorare_utils/competition.go

27 lines
553 B
Go
Raw Normal View History

2024-06-06 05:52:54 +00:00
package sorare_utils
import (
"git.lehouerou.net/laurent/sorare"
"git.lehouerou.net/laurent/sorare/football"
"git.lehouerou.net/laurent/sorarebuddy/db"
)
type CompetitionUpdater struct {
s *sorare.Sorare
db *db.Client
countryUpdater *CountryUpdater
cache []football.Competition
slugsToRead []string
}
func NewCompetitionUpdater(s *sorare.Sorare, db *db.Client, countryUpdater *CountryUpdater) *CompetitionUpdater {
return &CompetitionUpdater{
s: s,
db: db,
countryUpdater: countryUpdater,
}
}