added docker continers to track server usage of docker containers

This commit is contained in:
2021-02-02 22:38:36 +04:00
parent 6b7abe989d
commit 67fc7ebc63
34 changed files with 7795 additions and 11 deletions

View File

@@ -1,9 +1,22 @@
package server
import (
"fmt"
"github.com/gin-gonic/gin"
"net/http"
)
func Servers() {
fmt.Print("here")
func Server() {
r := gin.Default()
// Gets default information of the server
r.GET("/server_info", func(c *gin.Context) {
c.JSON(http.StatusOK, ServerInfo())
})
r.GET("/create_vm", func(c *gin.Context) {
c.JSON(http.StatusOK, ServerInfo())
})
// Port running on
r.Run(":8088")
}