Documentation ¶
Index ¶
- func GetHRegistryInfo(serverName, serverHost string, serverPort int) (registry.Registry, *registry.Info)
- func GetKRegistryInfo(serverName, serverHost string, serverPort int) (registry.Registry, *registry.Info)
- func GetKResolve(group string) (discovery.Resolver, error)
- func InitNacos(dataId, group string) (string, error)
- type Config
- type ConfigInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHRegistryInfo ¶
Types ¶
type Config ¶
type Config struct { Local *ConfigInfo `json:"local" mapstructure:"local"` Dev *ConfigInfo `json:"dev" mapstructure:"dev"` Test *ConfigInfo `json:"test" mapstructure:"test"` Prod *ConfigInfo `json:"prod" mapstructure:"prod"` }
Config 各个环境的信息.
type ConfigInfo ¶
type ConfigInfo struct { Host string `mapstructure:"host"` Port uint64 `mapstructure:"port"` Namespace string `mapstructure:"namespace"` User string `mapstructure:"user"` Password string `mapstructure:"password"` DataId string `mapstructure:"dataid"` Group string `mapstructure:"group"` Weight int `mapstructure:"weight"` }
ConfigInfo 具体的配置信息.
Click to show internal directories.
Click to hide internal directories.