go-zprox/internal/router/router.go
Zeev Diukman fbaf9393ea first
2025-03-02 16:14:03 +00:00

24 lines
357 B
Go

package router
import "github.com/gorilla/mux"
func New() *MainRouter {
r := &MainRouter{}
r.SetMux()
return r
}
func (r *MainRouter) SetMux() {
r.Mux = mux.NewRouter()
}
type MainRouter struct {
Subrouters Subrouters
Mux *mux.Router
}
type Subrouters map[string]SubRouter
type SubRouter struct {
Name string
Group string
*mux.Router
}