feat: Internalize package reorganization, update run commands for each service

This commit is contained in:
2025-02-11 14:23:49 +01:00
parent 12e6c65727
commit eec969fc75
7 changed files with 5 additions and 5 deletions

View File

@@ -1,24 +0,0 @@
package generalnode
import "github.com/gin-gonic/gin"
func Start() {
router := gin.Default()
// Get Status
router.GET("/status", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "pong",
})
})
// Add Service
router.POST("/service", func(c *gin.Context) {
c.JSON(200, gin.H{
"serviceName": "service1",
"status": "registered",
})
})
router.Run() // listen and serve on 0.0.0.0:8080
}

View File

@@ -1 +0,0 @@
package generalnode

View File

@@ -1,13 +0,0 @@
package mapnode
import "github.com/gin-gonic/gin"
func Start() {
router := gin.Default()
router.GET("/ping", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "pong",
})
})
router.Run() // listen and serve on 0.0.0.0:8080
}

View File

@@ -1,13 +0,0 @@
package reducenode
import "github.com/gin-gonic/gin"
func Start() {
router := gin.Default()
router.GET("/ping", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "pong",
})
})
router.Run() // listen and serve on 0.0.0.0:8080
}