[message pusher] - standlone gin service

This commit is contained in:
zeaslity
2024-04-23 11:45:32 +08:00
parent 30d83f3c61
commit 16541183ef
41 changed files with 1481 additions and 133 deletions

25
message_pusher/main.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"github.com/gin-gonic/gin"
"io.wdd.message_pusher/router"
)
func main() {
engine := gin.Default()
// 强制日志颜色化
gin.ForceConsoleColor()
// 定义路由组
{
router.CMIIRouter(engine)
router.OctopusRouter(engine)
}
err := engine.Run(":8080")
if err != nil {
panic(err)
}
}