refactor: separate API handlers into dedicated packages with improved HTTP utilities

This commit is contained in:
fatedier
2026-01-14 00:48:52 +08:00
parent 3370bd53f5
commit 97dcb1e34b
15 changed files with 985 additions and 791 deletions

View File

@@ -40,6 +40,7 @@ import (
"github.com/fatedier/frp/server/controller"
"github.com/fatedier/frp/server/metrics"
"github.com/fatedier/frp/server/proxy"
"github.com/fatedier/frp/server/registry"
)
type ControlManager struct {
@@ -147,7 +148,7 @@ type Control struct {
// Server configuration information
serverCfg *v1.ServerConfig
clientRegistry *ClientRegistry
clientRegistry *registry.ClientRegistry
xl *xlog.Logger
ctx context.Context