Ai
1 Star 0 Fork 0

shellgithub/vm-manager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
app.go 557 Bytes
一键复制 编辑 原始数据 按行查看 历史
aghost 提交于 2021-02-01 06:47 +08:00 . feat: add ovs dpdk type network
package main
import (
log "github.com/sirupsen/logrus"
"runtime"
"vm-manager/Config"
"vm-manager/LogUtils"
"vm-manager/controller"
"vm-manager/model"
"vm-manager/tasks"
)
func main() {
runtime.GOMAXPROCS(2)
LogUtils.InitLog()
Config.InitConfig()
model.InitDb(Config.AppConfig.Db.Username, Config.AppConfig.Db.Password, Config.AppConfig.Db.Host, Config.AppConfig.Db.DbName)
defer model.DBClient.Close()
log.Info("init success")
go tasks.BuildVmListTask()
go tasks.VmManagerTask()
controller.InitGin(Config.AppConfig.Server.Listen)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shellgithub/vm-manager.git
git@gitee.com:shellgithub/vm-manager.git
shellgithub
vm-manager
vm-manager
master

搜索帮助