diff options
author | cyBerta <cyberta@riseup.net> | 2021-03-16 22:09:07 +0100 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2021-04-22 22:53:01 +0200 |
commit | c02cfd04253c5f5c839410d418789884b9bfb13a (patch) | |
tree | 531b31fa02ca89c0486d1b4afa8a304b7c991177 /app/src/test/resources/v4 | |
parent | a5a3dd31e53b772ccdddd6aaa6125968a894054c (diff) |
Adapt gateway selector to check for nearest gateway within a city. Also optionally parse sortedGateways json object from menshen backend reponse
Diffstat (limited to 'app/src/test/resources/v4')
-rw-r--r-- | app/src/test/resources/v4/riseup_geoip_v4.json | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app/src/test/resources/v4/riseup_geoip_v4.json b/app/src/test/resources/v4/riseup_geoip_v4.json new file mode 100644 index 00000000..439d6ffb --- /dev/null +++ b/app/src/test/resources/v4/riseup_geoip_v4.json @@ -0,0 +1,35 @@ +{ + "ip":"51.158.144.32", + "cc":"FR", + "city":"Paris", + "lat":48.8628, + "lon":2.3292, + "gateways":[ + "mouette.riseup.net", + "hoatzin.riseup.net", + "zarapito.riseup.net", + "redshank.riseup.net" + ], + "sortedGateways": [ + { + "host": "mouette.riseup.net", + "fullness": 0.3, + "overload": false + }, + { + "host": "hoatzin.riseup.net", + "fullness": 0.36, + "overload": false + }, + { + "host": "zarapito.riseup.net", + "fullness": 0.57, + "overload": false + }, + { + "host": "zarapito.riseup.net", + "fullness": 0.92, + "overload": true + } + ] +}
\ No newline at end of file |