-
Notifications
You must be signed in to change notification settings - Fork 272
/
endpoint.go
80 lines (76 loc) · 4.12 KB
/
endpoint.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package antiddos_public
// EndpointMap Endpoint Data
var EndpointMap map[string]string
// EndpointType regional or central
var EndpointType = "regional"
// GetEndpointMap Get Endpoint Data Map
func GetEndpointMap() map[string]string {
if EndpointMap == nil {
EndpointMap = map[string]string{
"cn-shanghai-internal-test-1": "antiddos.aliyuncs.com",
"cn-shenzhen-su18-b01": "antiddos.aliyuncs.com",
"cn-beijing": "antiddos.aliyuncs.com",
"cn-shanghai-inner": "antiddos.aliyuncs.com",
"cn-hangzhou-internal-prod-1": "antiddos.aliyuncs.com",
"cn-north-2-gov-1": "antiddos.aliyuncs.com",
"cn-yushanfang": "antiddos.aliyuncs.com",
"cn-qingdao-nebula": "antiddos.aliyuncs.com",
"cn-heyuan": "antiddos-openapi.cn-heyuan.aliyuncs.com",
"cn-beijing-finance-pop": "antiddos.aliyuncs.com",
"cn-wuhan": "antiddos.aliyuncs.com",
"cn-zhangjiakou": "antiddos-openapi.cn-zhangjiakou.aliyuncs.com",
"us-west-1": "antiddos.aliyuncs.com",
"cn-zhangbei": "antiddos.aliyuncs.com",
"rus-west-1-pop": "antiddos.aliyuncs.com",
"cn-shanghai-et15-b01": "antiddos.aliyuncs.com",
"cn-hangzhou-bj-b01": "antiddos.aliyuncs.com",
"cn-zhangbei-na61-b01": "antiddos.aliyuncs.com",
"ap-northeast-1": "antiddos-openapi.ap-northeast-1.aliyuncs.com",
"cn-huhehaote-nebula-1": "antiddos.aliyuncs.com",
"cn-shanghai-et2-b01": "antiddos.aliyuncs.com",
"ap-southeast-1": "antiddos.aliyuncs.com",
"ap-southeast-2": "antiddos-openapi.ap-southeast-2.aliyuncs.com",
"ap-southeast-3": "antiddos-openapi.ap-southeast-3.aliyuncs.com",
"ap-southeast-5": "antiddos-openapi.ap-southeast-5.aliyuncs.com",
"us-east-1": "antiddos.aliyuncs.com",
"cn-shenzhen-inner": "antiddos.aliyuncs.com",
"cn-zhangjiakou-na62-a01": "antiddos-openapi.cn-zhangjiakou.aliyuncs.com",
"cn-beijing-gov-1": "antiddos.aliyuncs.com",
"cn-wulanchabu": "antiddos-openapi.cn-wulanchabu.aliyuncs.com",
"ap-south-1": "antiddos-openapi.ap-south-1.aliyuncs.com",
"cn-shenzhen-st4-d01": "antiddos.aliyuncs.com",
"cn-haidian-cm12-c01": "antiddos.aliyuncs.com",
"cn-qingdao": "antiddos.aliyuncs.com",
"cn-hongkong-finance-pop": "antiddos.aliyuncs.com",
"cn-shanghai": "antiddos.aliyuncs.com",
"cn-shanghai-finance-1": "antiddos.aliyuncs.com",
"cn-hongkong": "antiddos.aliyuncs.com",
"eu-central-1": "antiddos-openapi.eu-central-1.aliyuncs.com",
"cn-shenzhen": "antiddos.aliyuncs.com",
"cn-zhengzhou-nebula-1": "antiddos.aliyuncs.com",
"eu-west-1": "antiddos-openapi.eu-west-1.aliyuncs.com",
"cn-hangzhou-internal-test-1": "antiddos.aliyuncs.com",
"eu-west-1-oxs": "antiddos.aliyuncs.com",
"cn-beijing-finance-1": "antiddos.aliyuncs.com",
"cn-hangzhou-internal-test-3": "antiddos.aliyuncs.com",
"cn-shenzhen-finance-1": "antiddos.aliyuncs.com",
"cn-hangzhou-internal-test-2": "antiddos.aliyuncs.com",
"me-east-1": "antiddos-openapi.me-east-1.aliyuncs.com",
"cn-chengdu": "antiddos-openapi.cn-chengdu.aliyuncs.com",
"cn-hangzhou-test-306": "antiddos.aliyuncs.com",
"cn-guangzhou": "antiddos-openapi.cn-guangzhou.aliyuncs.com",
"cn-hangzhou-finance": "antiddos.aliyuncs.com",
"cn-beijing-nu16-b01": "antiddos.aliyuncs.com",
"cn-edge-1": "antiddos.aliyuncs.com",
"cn-huhehaote": "antiddos-openapi.cn-huhehaote.aliyuncs.com",
"cn-fujian": "antiddos.aliyuncs.com",
"ap-northeast-2-pop": "antiddos.aliyuncs.com",
"cn-hangzhou": "antiddos.aliyuncs.com",
}
}
return EndpointMap
}
// GetEndpointType Get Endpoint Type Value
func GetEndpointType() string {
return EndpointType
}