mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-06 01:50:25 +08:00
初步实现安装界面
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/rpc/services"
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/utils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
|
||||
"github.com/iwind/TeaGo/dbs"
|
||||
"github.com/iwind/TeaGo/logs"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/credentials"
|
||||
@@ -28,6 +29,9 @@ func NewAPINode() *APINode {
|
||||
func (this *APINode) Start() {
|
||||
logs.Println("[API]start api node, pid: " + strconv.Itoa(os.Getpid()))
|
||||
|
||||
// 数据库通知启动
|
||||
dbs.NotifyReady()
|
||||
|
||||
// 读取配置
|
||||
config, err := configs.SharedAPIConfig()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user