|
@@ -11,6 +11,8 @@ import (
|
|
"hongze/mysteel_watch/config"
|
|
"hongze/mysteel_watch/config"
|
|
"hongze/mysteel_watch/utils"
|
|
"hongze/mysteel_watch/utils"
|
|
"io"
|
|
"io"
|
|
|
|
+
|
|
|
|
+ "github.com/rdlucklib/rdluck_tools/cache"
|
|
)
|
|
)
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -21,9 +23,12 @@ var (
|
|
DEFAULT_MYSQL *gorm.DB //默认数据库连接配置
|
|
DEFAULT_MYSQL *gorm.DB //默认数据库连接配置
|
|
Redis *redis.Client //redis链接
|
|
Redis *redis.Client //redis链接
|
|
EsClient *elastic.Client
|
|
EsClient *elastic.Client
|
|
|
|
+
|
|
|
|
+ Rc *cache.Cache //redis缓存
|
|
|
|
+ Re error //redis错误
|
|
)
|
|
)
|
|
|
|
|
|
-const ConfigFile = "config/config.yaml" //本地(测试)环境下的配置文件地址
|
|
|
|
|
|
+const ConfigFile = "config/config.yaml" //本地(测试)环境下的配置文件地址
|
|
const ProConfigFile = "config/config.yaml" //生产环境下的配置文件地址
|
|
const ProConfigFile = "config/config.yaml" //生产环境下的配置文件地址
|
|
|
|
|
|
func init() {
|
|
func init() {
|