new proxy implementation with Gin framework

- Created a new proxy structure under NewProxy/ using the Gin web framework.
- Added main entry point (main.go) to register and run routes.
- Implemented new route handlers for:
 > Status — monitors active downloads and total data transferred.
 > Forward — handles proxy forwarding logic.
 > Builds — manages build-related requests.
This commit is contained in:
Andrei Alexandru
2025-10-20 04:14:45 +03:00
parent e9f9211e39
commit da38f036ed
8 changed files with 310 additions and 0 deletions

17
NewProxy/main.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"github.com/gin-gonic/gin"
"newproxy/routes"
)
func main() {
r := gin.Default()
// Register routes of the proxy
routes.RegisterStatusRoute(r)
routes.RegisterForwardRoute(r)
routes.RegisterBuildsRoute(r)
r.Run(":5090") //from old proxy :)
}