代码拉取完成,页面将自动刷新
package main
import (
"gitee.com/aywc_1/aywc_judge/src/configuration"
"gitee.com/aywc_1/aywc_judge/src/controllers"
"gitee.com/aywc_1/aywc_judge/src/lib"
"gitee.com/aywc_1/aywc_judge/src/middlewares"
"github.com/shenyisyn/goft-gin/goft"
log "github.com/sirupsen/logrus"
"net/http"
)
func main() {
configuration.InitLog("judge")
log.Info("Starting web http application...")
lib.NewMQ()
g := goft.Ignite()
uploadPath := configuration.GetYamlValue([]string{"config", "upload_path"}, 0, "/mydata/go/upload").(string)
processPath := configuration.GetYamlValue([]string{"config", "process_path"}, 0, "/mydata/go/process").(string)
headPicturePath := configuration.GetYamlValue([]string{"config", "head_picture_path"}, 0, "/mydata/go/head").(string)
g.StaticFS("/upload", http.Dir(uploadPath))
g.StaticFS("/process", http.Dir(processPath))
g.StaticFS("/head", http.Dir(headPicturePath))
g.Config(configuration.NewDBConfig(), configuration.NewServiceConfig()).
Attach(middlewares.NewTokenCheck()).
Mount("api/v1", controllers.NewDeviceWarmController(), controllers.NewDeviceWarmMQController(), controllers.NewDeviceWarmMQTTController(), controllers.NewRongCloudController(), controllers.NewServiceCenterController()).Launch()
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。