feat(core): publish GameOver event to Redis Streams (#64)
Add GameOver to EventType enum and GameOverPayload DTO.
GameRedisPublisher publishes to {prefix}:game-over stream (MAXLEN ~1000)
on game completion. NativeReflectionConfig updated for core module.
Closes NCS-102
https://knockoutwhist.youtrack.cloud/issue/NCS-102
Reviewed-on: #64
This commit was merged in pull request #64.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package de.nowchess.api.event
|
||||
|
||||
enum EventType:
|
||||
case GameStart, GameCreationRequest, GameCreationResponse, BotGameStart, ChallengeCreated, ChallengeAccepted
|
||||
case GameStart, GameCreationRequest, GameCreationResponse, BotGameStart, ChallengeCreated, ChallengeAccepted, GameOver
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package de.nowchess.api.event
|
||||
|
||||
final case class GameOverPayload(
|
||||
gameId: String,
|
||||
result: String,
|
||||
terminationReason: String,
|
||||
whiteId: String,
|
||||
blackId: String,
|
||||
)
|
||||
Reference in New Issue
Block a user