JCC-CSScheduler/client/internal/config/config.go

24 lines
459 B
Go

package config
import (
"gitlink.org.cn/cloudream/common/pkgs/logger"
"gitlink.org.cn/cloudream/common/utils/config"
scmq "gitlink.org.cn/cloudream/scheduler/common/pkgs/mq"
)
type Config struct {
MaxRepCount int `json:"maxRepCount"`
Logger logger.Config `json:"logger"`
RabbitMQ scmq.Config `json:"rabbitMQ"`
}
var cfg Config
func Init() error {
return config.DefaultLoad("client", &cfg)
}
func Cfg() *Config {
return &cfg
}