实现基本的访问日志策略

This commit is contained in:
GoEdgeLab
2021-07-29 16:50:59 +08:00
parent 2de2c238c8
commit 2cff745806
19 changed files with 1451 additions and 57 deletions

View File

@@ -4,6 +4,7 @@ import (
"crypto/tls"
"errors"
"fmt"
"github.com/TeaOSLab/EdgeAPI/internal/accesslogs"
"github.com/TeaOSLab/EdgeAPI/internal/configs"
teaconst "github.com/TeaOSLab/EdgeAPI/internal/const"
"github.com/TeaOSLab/EdgeAPI/internal/db/models"
@@ -110,6 +111,9 @@ func (this *APINode) Start() {
// 状态变更计时器
go NewNodeStatusExecutor().Listen()
// 访问日志存储管理器
go accesslogs.SharedStorageManager.Start()
// 监听RPC服务
remotelogs.Println("API_NODE", "starting RPC server ...")