소스 검색

update 增加logstash数据库组件

Alvin 8 달 전
부모
커밋
c1162dad58
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      game/config/profile-gc.json
  2. 2 0
      game/game_cluster/nodes/webadmin/web/web.go

+ 2 - 1
game/config/profile-gc.json

@@ -111,7 +111,8 @@
         "address": "0.0.0.0:30000",
         "__settings__": {
           "db_id_list": {
-            "game_db_id": "game_db_1"
+            "game_db_id": "game_db_1",
+            "logstash_db_id": "gc_logstash"
           },
           "ref_logger": "web_admin_log",
           "open_ip_whitelist": false

+ 2 - 0
game/game_cluster/nodes/webadmin/web/web.go

@@ -5,6 +5,7 @@ import (
 	"github.com/mhaya"
 	mhayaCron "github.com/mhaya/components/cron"
 	mhayaGin "github.com/mhaya/components/gin"
+	mhayaGORM "github.com/mhaya/components/gorm"
 	mhayaMongo "github.com/mhaya/components/mongo"
 	checkCenter "github.com/mhaya/game/game_cluster/internal/component/check_center"
 	"github.com/mhaya/game/game_cluster/internal/data"
@@ -30,6 +31,7 @@ func main() {
 	app.Register(httpServerComponent(app.Address()))
 	// 注册db组件
 	app.Register(mhayaMongo.NewComponent())
+	app.Register(mhayaGORM.NewComponent())
 
 	app.AddActors(
 		&mdb.ActorDB{},