环境的配置是通过secret区分的吗?怎么在连接Apollo的时候指定环境
type AppConfig struct {
AppID string json:"appId"
Cluster string json:"cluster"
NamespaceName string json:"namespaceName"
IP string json:"ip"
IsBackupConfig bool default:"true" json:"isBackupConfig"
BackupConfigPath string json:"backupConfigPath"
Secret string json:"secret"
SyncServerTimeout int json:"syncServerTimeout"
notificationsMap *notificationsMap
currentConnApolloConfig *CurrentApolloConfig
}
如果是服务器不一样通过 ip,如果是配置界面中的环境不一样使用其中的 cluster name
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.