starter repo
This commit is contained in:
13
internal/routing/models.go
Normal file
13
internal/routing/models.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package routing
|
||||
|
||||
import "time"
|
||||
|
||||
type PlayingState struct {
|
||||
IsPaused bool
|
||||
}
|
||||
|
||||
type GameLog struct {
|
||||
CurrentTime time.Time
|
||||
Message string
|
||||
Username string
|
||||
}
|
||||
16
internal/routing/routing.go
Normal file
16
internal/routing/routing.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package routing
|
||||
|
||||
const (
|
||||
ArmyMovesPrefix = "army_moves"
|
||||
|
||||
WarRecognitionsPrefix = "war"
|
||||
|
||||
PauseKey = "pause"
|
||||
|
||||
GameLogSlug = "game_logs"
|
||||
)
|
||||
|
||||
const (
|
||||
ExchangePerilDirect = "peril_direct"
|
||||
ExchangePerilTopic = "peril_topic"
|
||||
)
|
||||
Reference in New Issue
Block a user