网关实现自定义接口安全检查与边缘节点连接权限验证
This commit is contained in:
10
server/core/auth.go
Normal file
10
server/core/auth.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package core
|
||||
|
||||
import "time"
|
||||
|
||||
type Permit struct {
|
||||
Expire time.Time `json:"expire"`
|
||||
Whitelists []string `json:"whitelists"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
Reference in New Issue
Block a user