- 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.
17 lines
273 B
Go
17 lines
273 B
Go
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 :)
|
|
} |