【feat】首页面板数据

This commit is contained in:
XM-GO
2023-09-23 16:55:24 +08:00
parent 79314f6f7e
commit d3a7deb66f
10 changed files with 393 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import (
"pandax/pkg/events"
"pandax/pkg/mqtt"
"pandax/pkg/tdengine"
"time"
)
var (
@@ -19,5 +20,7 @@ var (
Conf *config.Config
MqttClient *mqtt.IothubMqttClient
)
var Cache = cache.NewTimedCache(cache.NoExpiration, cache.DefaultCleanupInterval)
var EventEmitter = events.EventEmitter{}
// Cache 默认10分钟
var Cache = cache.NewTimedCache(cache.NoExpiration, 600*time.Second)