2021-04-29 19:54:59 +08:00
|
|
|
package nacos_viper_remote
|
|
|
|
|
|
|
|
type Option struct {
|
|
|
|
Url string `mapstructure:"url"`
|
|
|
|
Port uint64 `mapstructure:"port"`
|
|
|
|
NamespaceId string `mapstructure:"namespace"`
|
|
|
|
GroupName string `mapstructure:"group"`
|
|
|
|
Config Config `mapstructure:"configserver"`
|
|
|
|
Auth *Auth `mapstructure:"auth"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
DataId string `mapstructure:"dataId"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Auth struct {
|
|
|
|
Enable bool `mapstructure:"enable"`
|
|
|
|
User string `mapstructure:"username"`
|
|
|
|
Password string `mapstructure:"password"`
|
2021-06-01 19:33:47 +08:00
|
|
|
|
|
|
|
// ACM Endpoint
|
|
|
|
Endpoint string `mapstructure:"endpoint"`
|
|
|
|
// ACM RegionId
|
|
|
|
RegionId string `mapstructure:"regionId"`
|
|
|
|
// ACM AccessKey
|
|
|
|
AccessKey string `mapstructure:"accessKey"`
|
|
|
|
// ACM SecretKey
|
|
|
|
SecretKey string `mapstructure:"secretKey"`
|
|
|
|
// ACM OpenKMS
|
|
|
|
OpenKMS bool `mapstructure:"openKMS"`
|
2021-04-29 19:54:59 +08:00
|
|
|
}
|