44 sessiondb "github.com/hollow-cube/api-server/internal/db"
55 "github.com/hollow-cube/api-server/internal/interaction"
66 "github.com/hollow-cube/api-server/internal/mapdb"
7+ "github.com/hollow-cube/api-server/internal/pkg/natsutil"
78 "github.com/hollow-cube/api-server/internal/pkg/notification"
89 "github.com/hollow-cube/api-server/internal/playerdb"
910 "go.uber.org/fx"
@@ -17,6 +18,7 @@ type ServerParams struct {
1718 PlayerStore * playerdb.Store
1819 MapStore * mapdb.Store
1920 SessionStore * sessiondb.Queries
21+ JetStream * natsutil.JetStreamWrapper
2022
2123 Notifications notification.Manager
2224 Interactions * interaction.Handler
@@ -28,6 +30,7 @@ type Server struct {
2830 playerStore * playerdb.Store
2931 mapStore * mapdb.Store
3032 sessionStore * sessiondb.Queries
33+ jetStream * natsutil.JetStreamWrapper
3134
3235 notifications notification.Manager
3336 interactions * interaction.Handler
@@ -39,6 +42,7 @@ func NewServer(p ServerParams) (*Server, error) {
3942 playerStore : p .PlayerStore ,
4043 mapStore : p .MapStore ,
4144 sessionStore : p .SessionStore ,
45+ jetStream : p .JetStream ,
4246 notifications : p .Notifications ,
4347 interactions : p .Interactions ,
4448 }
0 commit comments