重命名包 client 为 edge;重命名包 server 为 gateway
This commit is contained in:
15
gateway/app/app.go
Normal file
15
gateway/app/app.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"proxy-server/gateway/core"
|
||||
)
|
||||
|
||||
var (
|
||||
Id int32
|
||||
Name string
|
||||
PlatformSecret string // 平台密钥,验证接收的请求是否属于平台
|
||||
|
||||
Clients = core.SyncMap[int32, uint16]{} // 节点 ID -> 转发端口
|
||||
Assigns = core.SyncMap[uint16, int32]{} // 转发端口 -> 节点 ID
|
||||
Permits = core.SyncMap[uint16, *core.Permit]{} // 转发端口 -> 权限配置
|
||||
)
|
||||
Reference in New Issue
Block a user