Documentation ¶
Index ¶
- Variables
- func WowsRealm(realmStr string) (wargaming.Realm, error)
- type Backend
- func (backend *Backend) FillShipMapping() error
- func (backend *Backend) GetClansDetails(clanIDs []int) (ret []*model.Clan, err error)
- func (backend *Backend) GetPlayerDetails(playerIds []int, withT10 bool) ([]*model.Player, error)
- func (backend *Backend) GetPlayerT10Count(playerId int) (int, error)
- func (backend *Backend) ListClansIds(page int) ([]int, error)
- func (backend *Backend) LoadWowsVersionsFromCSV(path string) error
- func (backend *Backend) ScanAllPlayers() (err error)
- func (backend *Backend) ScanAllPlayersTrigram(startingTrigramPrefix string, trigramPrefixCount *int) (err error)
- func (backend *Backend) ScrapAll() (err error)
- func (backend *Backend) ScrapAllClans() (err error)
- func (backend *Backend) UpdateClans(clanIDs []int) error
- func (backend *Backend) UpdateDetailsAllPlayers() (err error)
- func (backend *Backend) UpdatePlayerBatch(playerIDs []int, offset int)
- func (backend *Backend) UpdatePlayerListT10(playerList []*model.Player) ([]*model.Player, error)
- func (backend *Backend) UpsertWowsVersion(version string, releaseDate time.Time) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Backend ¶
type Backend struct { ShipMapping map[int]int Realm wargaming.Realm Logger *zap.SugaredLogger DB *gorm.DB APICallCounter int PrefixBreak int // Number of trigram prefixes scanned before breaking, usefull when testing ClanBreak int // Number of clan to scan before braking, once again for testing // contains filtered or unexported fields }
func NewBackend ¶
func (*Backend) FillShipMapping ¶
func (*Backend) GetClansDetails ¶
func (*Backend) GetPlayerDetails ¶
func (*Backend) GetPlayerT10Count ¶
func (*Backend) LoadWowsVersionsFromCSV ¶
func (*Backend) ScanAllPlayers ¶
func (*Backend) ScanAllPlayersTrigram ¶
func (*Backend) ScrapAllClans ¶
func (*Backend) UpdateClans ¶
func (*Backend) UpdateDetailsAllPlayers ¶
func (*Backend) UpdatePlayerBatch ¶
func (*Backend) UpdatePlayerListT10 ¶
Click to show internal directories.
Click to hide internal directories.