代码拉取完成,页面将自动刷新
package ufile_gosdk
//北京
//外网:www.cn-bj.ufileos.com
//B机房内网:www.ufile.cn-north-02.ucloud.cn
//C机房内网: www.ufile.cn-north-03.ucloud.cn
//D机房内网: www.ufile.cn-north-04.ucloud.cn
//上海二
//外网: www.cn-sh2.ufileos.com
//内网: www.internal-cn-sh2-01.ufileos.com
//香港
//外网:www.hk.ufileos.com
//内网:www.internal-hk-01.ufileos.com
//广东
//外网:www.cn-gd.ufileos.com
//内网:www.internal-cn-gd-02.ufileos.com
//美国
//外网:www.us-ca.ufileos.com
//内网:www.internal-us-ca-01.ufileos.com
const (
CN_BEIJING = "www.cn-bj.ufileos.com"
CN_BEIJING_INTERNAL_B = "www.ufile.cn-north-02.ucloud.cn"
CN_BEIJING_INTERNAL_C = "www.ufile.cn-north-03.ucloud.cn"
CN_BEIJING_INTERNAL_D = "www.ufile.cn-north-04.ucloud.cn"
CN_SHANGHAI = "www.cn-sh2.ufileos.com"
CN_SHANGHAI_INTERNAL = "www.internal-cn-sh2-01.ufileos.com"
CN_HK = "www.hk.ufileos.com"
CN_HK_INTERNAL = "www.internal-hk-01.ufileos.com"
CN_GUANGDONG = "www.cn-gd.ufileos.com"
CN_GUANGDONG_INTERNAL = "www.internal-cn-gd-02.ufileos.com"
US_CA = "www.us-ca.ufileos.com"
US_CA_INTERNAL = "www.internal-us-ca-01.ufileos.com"
)
var Region map[string]string
func init() {
Region = make(map[string]string)
Region[CN_BEIJING] = "cn-bj2"
Region[CN_BEIJING_INTERNAL_B] = "cn-bj2"
Region[CN_BEIJING_INTERNAL_C] = "cn-bj2"
Region[CN_BEIJING_INTERNAL_D] = "cn-bj2"
Region[CN_SHANGHAI] = "cn-sh2"
Region[CN_SHANGHAI_INTERNAL] = "cn-sh2"
Region[CN_HK] = "hk"
Region[CN_HK_INTERNAL] = "hk"
Region[CN_GUANGDONG] = "cn-gd"
Region[CN_GUANGDONG_INTERNAL] = "cn-gd"
Region[US_CA] = "us-ca"
Region[US_CA_INTERNAL] = "us-ca"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。