validation

package
v0.0.0-...-fb45318 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreValidUsersToPlay

func AreValidUsersToPlay(users []*entity.UserDTO) error

func GameIsAvailableToPlay

func GameIsAvailableToPlay(game *entity.GameDTO) error

func IsGameOver

func IsGameOver(response *entity.ResultTurnDTO) bool

func IsNext

func IsNext(response *entity.ResultTurnDTO) bool

func IsNextTurnCorrectOne

func IsNextTurnCorrectOne(nextUserId, userId string) error

func UserBelongToGame

func UserBelongToGame(game *entity.GameDTO, userId string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL