endpoint.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package green
  2. // EndpointMap Endpoint Data
  3. var EndpointMap map[string]string
  4. // EndpointType regional or central
  5. var EndpointType = "regional"
  6. // GetEndpointMap Get Endpoint Data Map
  7. func GetEndpointMap() map[string]string {
  8. if EndpointMap == nil {
  9. EndpointMap = map[string]string{
  10. "ap-south-1": "green.ap-southeast-1.aliyuncs.com",
  11. "eu-west-1": "green.ap-southeast-1.aliyuncs.com",
  12. "ap-northeast-1": "green.ap-southeast-1.aliyuncs.com",
  13. "cn-shenzhen-finance-1": "green.aliyuncs.com",
  14. "me-east-1": "green.ap-southeast-1.aliyuncs.com",
  15. "cn-chengdu": "green.aliyuncs.com",
  16. "cn-north-2-gov-1": "green.aliyuncs.com",
  17. "cn-qingdao": "green.aliyuncs.com",
  18. "cn-shanghai-finance-1": "green.aliyuncs.com",
  19. "cn-hongkong": "green.aliyuncs.com",
  20. "cn-hangzhou-finance": "green.aliyuncs.com",
  21. "ap-southeast-2": "green.ap-southeast-1.aliyuncs.com",
  22. "ap-southeast-3": "green.ap-southeast-1.aliyuncs.com",
  23. "eu-central-1": "green.ap-southeast-1.aliyuncs.com",
  24. "cn-huhehaote": "green.aliyuncs.com",
  25. "ap-southeast-5": "green.ap-southeast-1.aliyuncs.com",
  26. "us-east-1": "green.ap-southeast-1.aliyuncs.com",
  27. "cn-zhangjiakou": "green.aliyuncs.com",
  28. }
  29. }
  30. return EndpointMap
  31. }
  32. // GetEndpointType Get Endpoint Type Value
  33. func GetEndpointType() string {
  34. return EndpointType
  35. }