Commit Graph

24 Commits

Author SHA1 Message Date
Dawid Wysokiński 6efa1a4f61 use buildURL for fallbacks 2021-07-17 11:44:29 +02:00
Dawid Wysokiński e9473847ca fix: add fallback to not gzziped version 2021-07-17 11:28:47 +02:00
Dawid Wysokiński 8763e0013d fix: missing protocol scheme in VersionDataloader 2021-07-17 11:13:14 +02:00
Dawid Wysokiński 5030d62000 ServerDataLoader.LoadOD - replace fmt.Sprintf with string concatenation 2021-07-17 09:05:14 +02:00
Dawid Wysokiński ee20d129af add TestLoadEnnoblements 2021-07-17 07:49:16 +02:00
Dawid Wysokiński 4e82ae6bed rename a few fields in the handlers struct and add two new (conquer, getConquer) 2021-07-17 07:20:22 +02:00
Dawid Wysokiński 77e67c83dd add TestLoadVillages 2021-07-17 07:08:00 +02:00
Dawid Wysokiński db02f8c4ae add TestLoadTribes 2021-07-17 06:48:57 +02:00
Dawid Wysokiński 1de6302b52 add more scenarios to TestLoadPlayers 2021-07-17 06:36:00 +02:00
Dawid Wysokiński 25c3a4f2bc add more scenarios to TestLoadOD, add one more test - TestLoadPlayers 2021-07-17 06:23:37 +02:00
Dawid Wysokiński f30ef110da add scenarios to TestLoadOD 2021-07-14 06:40:58 +02:00
Dawid Wysokiński 6e3d32648d fix one typo 2021-07-13 16:47:11 +02:00
Dawid Wysokiński 3a2ea77dd7 Merge branch 'master' into feat/add-tests
# Conflicts:
#	tw/twdataloader/server_data_loader.go
2021-07-13 16:46:46 +02:00
Dawid Wysokiński ef3e1dd459 ServerDataLoader - remove fallbacks to not gzziped files 2021-07-13 16:43:19 +02:00
Dawid Wysokiński 4613155d5d add server_data_loader_test.go 2021-07-13 16:40:29 +02:00
Dawid Wysokiński 1248c0d7db prepareTestServer refactor 2021-07-13 16:26:53 +02:00
Dawid Wysokiński a2e82ef96b VersionDataLoader.LoadServer doesn't need https:// 2021-07-13 15:58:21 +02:00
Dawid Wysokiński 477970b0a6 use w.Write instead of fmt.Fprintln 2021-07-13 15:44:44 +02:00
Dawid Wysokiński 232d9caad3 add more checks in VersionDataLoader.LoadServers, add more tests 2021-07-13 11:09:59 +02:00
Dawid Wysokiński de68ea117b add version_data_loader_test.go 2021-07-13 07:30:45 +02:00
Dawid Wysokiński ab964b7c34 refactor: return types, not interfaces 2021-07-13 06:24:10 +02:00
Dawid Wysokiński fcef062f6b bump github.com/Kichiyaki/gopgutil/v10 2021-05-21 22:50:55 +02:00
Dawid Wysokiński 742945be9f separate the config for ServerDataLoader and VersionDataLoader 2021-05-03 16:50:38 +02:00
Dawid Wysokiński b5464a6da5 huge refactor, rename some of the packages
models:
- remove most of the helpers and use github.com/Kichiyaki/gopgutil/v10
- remove relationship/sort appenders
- add a new model - Coords and a new constructor for this model - ParseCoords
2021-05-02 15:35:24 +02:00