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