管理员也支持AccessKey,Rest API增加所有的服务

This commit is contained in:
GoEdgeLab
2021-06-20 19:22:24 +08:00
parent a1c141010f
commit f67ddad2a8
12 changed files with 617 additions and 113 deletions

View File

@@ -27,16 +27,21 @@ import (
"os/exec"
"regexp"
"strconv"
"sync"
"time"
)
var sharedAPIConfig *configs.APIConfig = nil
type APINode struct {
serviceInstanceMap map[string]interface{}
serviceInstanceLocker sync.Mutex
}
func NewAPINode() *APINode {
return &APINode{}
return &APINode{
serviceInstanceMap: map[string]interface{}{},
}
}
func (this *APINode) Start() {