feat 网关鉴权
This commit is contained in:
@@ -22,6 +22,7 @@ type MonitorConfig struct {
|
||||
type DBConfig struct {
|
||||
Etcd *EtcdConfig `yaml:"etcd"`
|
||||
MySQL map[string]*MySQLConfig `yaml:"mysql"`
|
||||
Redis *RedisConfig `yaml:"redis"`
|
||||
}
|
||||
|
||||
type EtcdConfig struct {
|
||||
@@ -37,6 +38,12 @@ type MySQLConfig struct {
|
||||
LogLevel string `yaml:"logLevel"`
|
||||
}
|
||||
|
||||
type RedisConfig struct {
|
||||
Addr string `yaml:"addr"`
|
||||
Password string `yaml:"password"`
|
||||
DB int `yaml:"db"`
|
||||
}
|
||||
|
||||
type ServeConfig struct {
|
||||
Grpc *struct {
|
||||
Address string `yaml:"address"`
|
||||
|
||||
Reference in New Issue
Block a user