1 Star 0 Fork 0

shellgithub/vm-manager

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ServiceStatusController.go 295 Bytes
一键复制 编辑 原始数据 按行查看 历史
aghost 提交于 2020-08-18 01:29 +08:00 . init
package controller
import (
"github.com/gin-gonic/gin"
"net/http"
"vm-manager/tasks"
)
func GetStatus(context *gin.Context) {
tasks.VmRuntimeMapMutex.Lock()
defer tasks.VmRuntimeMapMutex.Unlock()
context.JSON(http.StatusOK, gin.H{
"status": "ok",
"vmInfo": tasks.VmRuntimeMap,
})
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shellgithub/vm-manager.git
git@gitee.com:shellgithub/vm-manager.git
shellgithub
vm-manager
vm-manager
master

搜索帮助