现在基础功能有了,回头看一下writeLog是否符合预期
This commit is contained in:
parent
9e7aa4fb94
commit
86d19153f6
@ -19,15 +19,15 @@ import (
|
|||||||
|
|
||||||
func GetRemoteRedisConfigList() ([]*core.RedisConfig, error) {
|
func GetRemoteRedisConfigList() ([]*core.RedisConfig, error) {
|
||||||
list := []*core.RedisConfig{}
|
list := []*core.RedisConfig{}
|
||||||
envListStr := os.Getenv("SARDINE_REMOTE_REDIS_LIST")
|
envListStr := os.Getenv("SIAGA_UPSTREAM_REDIS_LIST")
|
||||||
envList := strings.Split(envListStr, "|")
|
envList := strings.Split(envListStr, "|")
|
||||||
for _, v := range envList {
|
for _, v := range envList {
|
||||||
if len(v) == 0 {
|
if len(v) == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
urlstr := core.REMOTE_REDIS_PRE_NAME + v + "_URL"
|
urlstr := "SIAGA_UPSTREAM_REDIS_" + v + "_URL"
|
||||||
indexstr := core.REMOTE_REDIS_PRE_NAME + v + "_INDEX"
|
indexstr := "SIAGA_UPSTREAM_REDIS_" + v + "_INDEX"
|
||||||
password := os.Getenv(core.REMOTE_REDIS_PRE_NAME + v + "_PASSWORD")
|
password := os.Getenv("SIAGA_UPSTREAM_REDIS_" + v + "_PASSWORD")
|
||||||
// channelstr := core.REMOTE_REDIS_PRE_NAME + v + "_CHANNEL_PRENAME"
|
// channelstr := core.REMOTE_REDIS_PRE_NAME + v + "_CHANNEL_PRENAME"
|
||||||
// channelPreName := os.Getenv(channelstr)
|
// channelPreName := os.Getenv(channelstr)
|
||||||
url := os.Getenv(urlstr)
|
url := os.Getenv(urlstr)
|
||||||
|
@ -30,7 +30,7 @@ func (mmx *MyMaX) Process(cr *core.Core) {
|
|||||||
}
|
}
|
||||||
// TODO
|
// TODO
|
||||||
go func() {
|
go func() {
|
||||||
torqueSorted := os.Getenv("SARDINE_MAKESERIES") == "true"
|
torqueSorted := os.Getenv("SIAGA_MAKESERIES") == "true"
|
||||||
if !torqueSorted {
|
if !torqueSorted {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
20
siaga.env
Normal file
20
siaga.env
Normal 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
|
Loading…
x
Reference in New Issue
Block a user