现在基础功能有了,回头看一下writeLog是否符合预期

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-15 22:57:50 +08:00
parent 9e7aa4fb94
commit 86d19153f6
3 changed files with 25 additions and 5 deletions

View File

@ -19,15 +19,15 @@ import (
func GetRemoteRedisConfigList() ([]*core.RedisConfig, error) {
list := []*core.RedisConfig{}
envListStr := os.Getenv("SARDINE_REMOTE_REDIS_LIST")
envListStr := os.Getenv("SIAGA_UPSTREAM_REDIS_LIST")
envList := strings.Split(envListStr, "|")
for _, v := range envList {
if len(v) == 0 {
continue
}
urlstr := core.REMOTE_REDIS_PRE_NAME + v + "_URL"
indexstr := core.REMOTE_REDIS_PRE_NAME + v + "_INDEX"
password := os.Getenv(core.REMOTE_REDIS_PRE_NAME + v + "_PASSWORD")
urlstr := "SIAGA_UPSTREAM_REDIS_" + v + "_URL"
indexstr := "SIAGA_UPSTREAM_REDIS_" + v + "_INDEX"
password := os.Getenv("SIAGA_UPSTREAM_REDIS_" + v + "_PASSWORD")
// channelstr := core.REMOTE_REDIS_PRE_NAME + v + "_CHANNEL_PRENAME"
// channelPreName := os.Getenv(channelstr)
url := os.Getenv(urlstr)

View File

@ -30,7 +30,7 @@ func (mmx *MyMaX) Process(cr *core.Core) {
}
// TODO
go func() {
torqueSorted := os.Getenv("SARDINE_MAKESERIES") == "true"
torqueSorted := os.Getenv("SIAGA_MAKESERIES") == "true"
if !torqueSorted {
return
}

20
siaga.env Normal file
View File

@ -0,0 +1,20 @@
GO_ENV=stage
SIAGA_ACCEPTTICKER=true
SIAGA_ACCEPTCANDLE=true
SIAGA_ACCEPTMAX=true
SIAGA_ACCEPTSERIES=false
SIAGA_SAVECANDLE=true
SIAGA_MAKESERIES=false
SIAGA_MAKEMAX=true
SIAGA_MAKESOFTCANDLE=true
SIAGA_TORQUESORTED=true
SIAGA_TICKERTOCANDLE=true
TEXUS_FluentBitUrl=fluentd.k8s.xunlang.home
SIAGA_UPSTREAM_REDIS_LIST=SILVER
SIAGA_UPSTREAM_REDIS_SILVER_URL=10.66.66.20:6379
SIAGA_UPSTREAM_REDIS_SILVER_INDEX=4