Documentation ¶
Index ¶
- func DeleteMatch(matchId string) error
- func DeleteTurn(matchId string, turnId string) error
- func ExpirePlayerSession(sessionId string) *errors.ServerError
- func GetMatchById(matchId string) (*models.Match, error)
- func GetMatches(playerId string, complete bool) ([]*models.Match, error)
- func GetMostRecentTurn(matchId string, playerId string) (*models.Turn, error)
- func GetPlayerByEmail(email string) (*models.Player, error)
- func GetPlayerById(playerId string) (*models.Player, error)
- func GetPlayerSession(sessionId string) (*models.PlayerSession, *errors.ServerError)
- func GetTurn(turnId string, playerId string) (*models.Turn, error)
- func GetTurnForMatch(turnId string, matchId string) (*models.Turn, error)
- func GetTurns(matchId string, playerId string) ([]*models.Turn, error)
- func InsertMatch(match *models.Match) (*models.Match, error)
- func InsertPlayer(email string, password string) (*models.Player, error)
- func InsertTurn(turn *models.Turn) (*models.Turn, error)
- func SavePlayerSession(playerId string, expireTime time.Time) (string, *errors.ServerError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMatch ¶
func DeleteTurn ¶
func ExpirePlayerSession ¶
func ExpirePlayerSession(sessionId string) *errors.ServerError
func GetMostRecentTurn ¶
func GetPlayerSession ¶
func GetPlayerSession(sessionId string) (*models.PlayerSession, *errors.ServerError)
func SavePlayerSession ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.