网关实现自定义接口安全检查与边缘节点连接权限验证
This commit is contained in:
12
server/app/app.go
Normal file
12
server/app/app.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package app
|
||||
|
||||
import "proxy-server/server/core"
|
||||
|
||||
var (
|
||||
Id int32
|
||||
Name string
|
||||
PlatformSecret string // 平台密钥,验证接收的请求是否属于平台
|
||||
|
||||
Assigns = make(map[uint16]int32) // 转发端口 -> 转发服务ID
|
||||
Permits = make(map[uint16]core.Permit) // 转发端口 -> 权限配置
|
||||
)
|
||||
Reference in New Issue
Block a user