Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
railgun-routing-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
railgun-routing-server
Commits
83896a90
Commit
83896a90
authored
Aug 19, 2022
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
router info
parent
6caff965
Pipeline
#15745
passed with stages
in 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
4 deletions
+47
-4
config/routers.json
config/routers.json
+44
-4
src/Router.ts
src/Router.ts
+3
-0
No files found.
config/routers.json
View file @
83896a90
[
{
"id"
:
1
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
3
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
7
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
9
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
}
{
"id"
:
1
,
"name"
:
"yangtze"
,
"address"
:
"10.198.0.1"
,
"location"
:
"CN-SHA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
3
,
"name"
:
"south"
,
"address"
:
"10.198.0.3"
,
"location"
:
"CN-SHA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
4
,
"name"
:
"ayane"
,
"address"
:
"10.198.0.4"
,
"location"
:
"CN-SZX"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
5
,
"name"
:
"satori"
,
"address"
:
"10.198.0.5"
,
"location"
:
"CN-YTY"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
6
,
"name"
:
"koishi"
,
"address"
:
"10.198.0.6"
,
"location"
:
"CN-JIU"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
7
,
"name"
:
"fractal"
,
"address"
:
"10.198.0.7"
,
"location"
:
"CN-SZX"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
8
,
"name"
:
"nanahira"
,
"address"
:
"10.198.0.22"
,
"location"
:
"US-SJC"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
9
,
"name"
:
"marcia"
,
"address"
:
"10.198.0.9"
,
"location"
:
"CN-SZX"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
10
,
"name"
:
"anillc"
,
"address"
:
"10.198.0.10"
,
"location"
:
"CN-SHA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
11
,
"name"
:
"crest"
,
"address"
:
"10.198.0.15"
,
"location"
:
"US-LAX"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
12
,
"name"
:
"hk-hkg-alql2"
,
"address"
:
"10.198.0.12"
,
"location"
:
"HK-HKG"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
13
,
"name"
:
"hk-hkg-alql3"
,
"address"
:
"10.198.0.20"
,
"location"
:
"HK-HKG"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
14
,
"name"
:
"frog"
,
"address"
:
"10.198.0.8"
,
"location"
:
"CN-SHA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
15
,
"name"
:
"ailizijiang"
,
"address"
:
"10.198.0.41"
,
"location"
:
"JP-NRT"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
16
,
"name"
:
"kano"
,
"address"
:
"10.198.0.14"
,
"location"
:
"KR-SEL"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
17
,
"name"
:
"ge-muc-uma"
,
"address"
:
"10.198.0.18"
,
"location"
:
"GE-MUC"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
18
,
"name"
:
"sakuya"
,
"address"
:
"10.198.0.16"
,
"location"
:
"TW-TPE"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
19
,
"name"
:
"monika"
,
"address"
:
"10.198.0.21"
,
"location"
:
"US-SEA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
24
,
"name"
:
"palm"
,
"address"
:
"10.198.0.3"
,
l
"ocation:""CN-ZB"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
25
,
"name"
:
"pekunicom"
,
"address"
:
"10.198.0.40"
,
"location"
:
"CN-PEK"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
26
,
"name"
:
"jue"
,
"address"
:
"10.198.0.32"
,
"location"
:
"JP-JPN"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
28
,
"name"
:
"bluebird"
,
"address"
:
"10.198.0.36"
,
"location"
:
"CN-PEK"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
29
,
"name"
:
"chikaanna"
,
"address"
:
"10.198.0.35"
,
"location"
:
"CN-SZX"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
30
,
"name"
:
"cain"
,
"address"
:
"10.198.0.17"
,
"location"
:
"CN-SHE"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
32
,
"name"
:
"hime"
,
"address"
:
"10.198.0.25"
,
"location"
:
"CN-SZX"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
33
,
"name"
:
"shirayuki"
,
"address"
:
"10.198.0.28"
,
"location"
:
"CN-SHA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
35
,
"name"
:
"whitelight"
,
"address"
:
"10.198.0.42"
,
"location"
:
"CN-CAN"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
37
,
"name"
:
"nekoyuki"
,
"address"
:
"10.198.0.37"
,
"location"
:
"SG-SIN"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
38
,
"name"
:
"rossa"
,
"address"
:
"10.198.0.38"
,
"location"
:
"CN-CAN"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
39
,
"name"
:
"tsan"
,
"address"
:
"10.198.0.39"
,
"location"
:
"CN-CAN"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
40
,
"name"
:
"budingocg"
,
"address"
:
"10.198.0.13"
,
"location"
:
"CN-CAN"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
41
,
"name"
:
"hlsj-vpn-3"
,
"address"
:
"10.198.0.53"
,
"location"
:
"CN-SZX"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
42
,
"name"
:
"kino-enter"
,
"address"
:
"10.198.0.23"
,
"location"
:
"CN-CAN"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
44
,
"name"
:
"tx-sha-xs"
,
"address"
:
"10.198.0.44"
,
"location"
:
"CN-SHA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
45
,
"name"
:
"tx-sha-hd"
,
"address"
:
"10.198.0.45"
,
"location"
:
"CN-SHA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
46
,
"name"
:
"tx-pek-wl"
,
"address"
:
"10.198.0.46"
,
"location"
:
"CN-PEK"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
47
,
"name"
:
"tx-can-hr"
,
"address"
:
"10.198.0.47"
,
"location"
:
"CN-CAN"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
48
,
"name"
:
"tx-can-qiao"
,
"address"
:
"10.198.0.48"
,
"location"
:
"CN-CAN"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
49
,
"name"
:
"tx-sha-saku"
,
"address"
:
"10.198.0.49"
,
"location"
:
"CN-SHA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
63
,
"name"
:
"kr-chu-cain1"
,
"address"
:
"10.198.0.26"
,
"location"
:
"KR-CHU"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
64
,
"name"
:
"kr-chu-cain2"
,
"address"
:
"10.198.0.27"
,
"location"
:
"KR-CHU"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
65
,
"name"
:
"kr-chu-caina"
,
"address"
:
"10.198.0.29"
,
"location"
:
"KR-CHU"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
100
,
"name"
:
"mini"
,
"address"
:
"10.198.0.100"
,
"location"
:
"CN-SHA"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
},
{
"id"
:
101
,
"name"
:
"genz"
,
"address"
:
"10.198.0.101"
,
"location"
:
"HK-HKG"
,
"inbound_cost"
:
0
,
"outbound_cost"
:
1
}
]
src/Router.ts
View file @
83896a90
...
...
@@ -16,6 +16,9 @@ export class Router {
// config
id
!
:
number
;
name
!
:
string
;
address
!
:
string
;
location
!
:
string
;
inbound_cost
!
:
number
;
outbound_cost
!
:
number
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment