feat jenkins cicd

This commit is contained in:
2025-12-31 23:34:44 +08:00
parent 670140e7d3
commit 01621ec237
32 changed files with 505 additions and 92 deletions

View File

@@ -12,7 +12,7 @@ type LogConfig struct {
Level string `yaml:"level"`
}
type MonitorConfig struct {
type MetricConfig struct {
Prometheus *struct {
Address string `yaml:"address"`
Port int32 `yaml:"port"`
@@ -22,6 +22,7 @@ type MonitorConfig struct {
type DBConfig struct {
Etcd *EtcdConfig `yaml:"etcd"`
MySQL map[string]*MySQLConfig `yaml:"mysql"`
Mongo map[string]*MongoConfig `yaml:"mongo"`
Redis *RedisConfig `yaml:"redis"`
}
@@ -38,6 +39,10 @@ type MySQLConfig struct {
LogLevel string `yaml:"logLevel"`
}
type MongoConfig struct {
URI string `yaml:"uri"`
}
type RedisConfig struct {
Addr string `yaml:"addr"`
Password string `yaml:"password"`