1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00

feature(manager): skeleton for worker-manager communication

这个提交包含在:
bigeagle
2016-04-23 21:54:00 +08:00
父节点 681388ffdd
当前提交 afee5b2a81
共有 3 个文件被更改,包括 74 次插入3 次删除

查看文件

@@ -23,14 +23,20 @@ func makeHTTPServer(debug bool) *gin.Engine {
r.GET("/ping", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"msg": "pong"})
})
// List jobs, status page
// list jobs, status page
r.GET("/jobs", func(c *gin.Context) {})
// worker online
r.POST("/workers/:name", func(c *gin.Context) {})
// post job list
r.POST("/workers/:name/jobs", func(c *gin.Context) {})
// get job list
r.GET("/workers/:name/jobs", func(c *gin.Context) {})
// post job status
r.POST("/workers/:name/jobs/:job", func(c *gin.Context) {})
// worker command polling
r.GET("/workers/:name/cmd_stream", func(c *gin.Context) {})
// for tunasynctl to post commands
r.POST("/cmd/", func(c *gin.Context) {})
return r
}