Documentation
¶
Overview ¶
Package nacos 提供AIDI PDT后端服务的统一配置
包括从nacos配置中心拉取服务配置、服务配置变更后的自动更新
Index ¶
- Variables
- func Get(key string) interface{}
- func GetBool(key string) bool
- func GetFloat64(key string) float64
- func GetInt32(key string) (value int32)
- func GetInt64(key string) (value int64)
- func GetString(key string) (value string)
- func GetStrings(key string) (s []string)
- func Init(namespace, group, dataID string, fileName string, conf interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DevSC = constant.ServerConfig{ Scheme: "http", ContextPath: "/nacos", IpAddr: "nacos.aidi-dev.hobot.cc", Port: 80, } TestSC = constant.ServerConfig{ Scheme: "http", ContextPath: "/nacos", IpAddr: "nacos.aidi-test.hobot.cc", Port: 80, } PreSC = constant.ServerConfig{ Scheme: "http", ContextPath: "/nacos", IpAddr: "nacos.aidi.hobot.cc", Port: 80, } ProdSC = constant.ServerConfig{ Scheme: "http", ContextPath: "/nacos", IpAddr: "nacos.aidi.hobot.cc", Port: 80, } SaasTestSC = constant.ServerConfig{ Scheme: "https", ContextPath: "/nacos", IpAddr: "nacos.aidi-test.horizon.ai", Port: 443, } SaasProdSC = constant.ServerConfig{ Scheme: "https", ContextPath: "/nacos", IpAddr: "nacos.aidi.horizon.ai", Port: 443, } SCMap = map[env.RunMode]constant.ServerConfig{ env.DevMode: DevSC, env.TestMode: TestSC, env.PreMode: PreSC, env.ProdMode: ProdSC, env.SaasTestMode: SaasTestSC, env.SaasProdMode: SaasProdSC, } )
Functions ¶
func GetStrings ¶
GetStrings 以,分割字符串 a,b,c,d ===> ["a", "b", "c", "d"]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.