feat 网关鉴权

This commit is contained in:
2025-12-22 18:04:36 +08:00
parent 69cc960fe5
commit 670140e7d3
68 changed files with 1424 additions and 492 deletions

View File

@@ -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"`