Documentation ¶
Index ¶
- Constants
- Variables
- func Get(key string) string
- func GetBool(key string) bool
- func GetDuration(key string) time.Duration
- func GetFloat64(key string) float64
- func GetInt(key string) int
- func GetInt32(key string) int32
- func GetInt32s(key string) (s []int32, err error)
- func GetInt64(key string) int64
- func GetInt64s(key string) (s []int64, err error)
- func GetStrings(key string) (s []string)
- func GetTime(key string, args ...string) time.Time
- func Set(key string, value string)
- type Conf
Constants ¶
View Source
const ( // PublicAddr 公网(测试) PublicAddr = "acm.aliyun.com" // HZAddr 华东 1(杭州) HZAddr = "addr-hz-internal.edas.aliyun.com" // QDAddr 华北 1(青岛) QDAddr = "addr-qd-internal.edas.aliyun.com" // SHAddr 华东 2(上海) SHAddr = "addr-sh-internal.edas.aliyun.com" // BJAddr 华北 2(北京) BJAddr = "addr-bj-internal.edas.aliyun.com" // SZAddr 华南 1(深圳) SZAddr = "addr-sz-internal.edas.aliyun.com" // HKAddr 香港 HKAddr = "addr-hk-internal.edas.aliyuncs.com" // SingaporeAddr 新加坡 SingaporeAddr = "addr-singapore-internal.edas.aliyun.com" // ApAddr 澳大利亚(悉尼) ApAddr = "addr-ap-southeast-2-internal.edas.aliyun.com" // USWest1Addr 美国(硅谷) USWest1Addr = "addr-us-west-1-internal.acm.aliyun.com" // USEast1Addr 美国(弗吉尼亚) USEast1Addr = "addr-us-east-1-internal.acm.aliyun.com" // ShanghaiFinance1Addr 华东 2(上海)金融云 ShanghaiFinance1Addr = "addr-cn-shanghai-finance-1-internal.edas.aliyun.com" )
Variables ¶
View Source
var ( // Hostname 主机名 服务树-service_name-rnd Hostname = "localhost" // AppID service name AppID = "localapp" // Env dev/uat/pre/prod Env = "dev" // Zone 区域 Zone = "sh001" )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.