Documentation ¶
Index ¶
- func DebugLog(msg ...string)
- func DebugLogf(msg string, a ...interface{})
- func FailOnError(err error, msg string)
- func InitLogger(fileName string)
- func LeaderToPlayerServer()
- func Leader_go()
- func ProcessUserInput() bool
- func PublishDeadPlayer(playerId *uint32, stage *uint32)
- func RabbitMqSetup()
- func RequestPlayerHistory(gamedata *GameData, grpcdata *GrpcData, playerId uint32) *[]uint32
- func RequestPrize(ctx context.Context, client pb.PrizeClient) uint32
- func SendPlayerMoves(grpcdata *GrpcData, gamedata *GameData)
- func ShowPlayerHistory(playerId uint32, history *[]uint32)
- type DebugLogger
- type GameData
- type GrpcData
- type Player
- type PlayerGroup
- type PlayerState
- type RabbitMqData
- type UserInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailOnError ¶
func InitLogger ¶
func InitLogger(fileName string)
func ProcessUserInput ¶
func ProcessUserInput() bool
func PublishDeadPlayer ¶
Send player death to Pool via RabbitMQ
func RequestPlayerHistory ¶
request player history from namenode
func RequestPrize ¶
func RequestPrize(ctx context.Context, client pb.PrizeClient) uint32
request current accumulated prize to pool node
func SendPlayerMoves ¶
send player moves to namenode
func ShowPlayerHistory ¶
Prints player history to console
Types ¶
type DebugLogger ¶
type DebugLogger struct {
// contains filtered or unexported fields
}
DEBUG TESTING --
type GrpcData ¶
type GrpcData struct {
// contains filtered or unexported fields
}
holds required data for a succesful grpc preamble dial
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func GetLivingPlayers ¶
func GetLivingPlayers() (players []Player)
Check the list of players, and return only the ones alive
type PlayerGroup ¶
type PlayerGroup struct {
// contains filtered or unexported fields
}
type RabbitMqData ¶
type RabbitMqData struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.