forked from yoyofxteam/nacos-viper-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnacos_options.go
33 lines (29 loc) · 920 Bytes
/
nacos_options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"`
LogDir string `mapstructure:"logdir"`
CacheDir string `mapstructure:"cachedir"`
}
type Config struct {
DataId string `mapstructure:"dataId"`
}
type Auth struct {
Enable bool `mapstructure:"enable"`
User string `mapstructure:"username"`
Password string `mapstructure:"password"`
// 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"`
}