|
@@ -107,9 +107,20 @@ func init() {
|
|
|
Size: DbConf.Elasticsearch.Other.Size,
|
|
|
}
|
|
|
Other.Init()
|
|
|
+ log.Println("初始化 Other elasticsearch")
|
|
|
+ }
|
|
|
+
|
|
|
+ if DbConf.Elasticsearch.Free != nil {
|
|
|
+ Free = &elastic.EsV7{
|
|
|
+ Address: DbConf.Elasticsearch.Free.Address,
|
|
|
+ UserName: DbConf.Elasticsearch.Free.UserName,
|
|
|
+ Password: DbConf.Elasticsearch.Free.Password,
|
|
|
+ Size: DbConf.Elasticsearch.Free.Size,
|
|
|
+ }
|
|
|
+ Free.Init()
|
|
|
//es.InitElasticSizeByAuth(DbConf.Elasticsearch.Other.Address, DbConf.Elasticsearch.Other.Size,
|
|
|
// DbConf.Elasticsearch.Other.UserName, DbConf.Elasticsearch.Other.Password)
|
|
|
- log.Println("初始化 Other elasticsearch")
|
|
|
+ log.Println("初始化 Free elasticsearch")
|
|
|
}
|
|
|
|
|
|
//初始化redis
|