dao

package
v0.0.0-...-ba7b697 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMatch

func DeleteMatch(matchId string) error

func DeleteTurn

func DeleteTurn(matchId string, turnId string) error

func ExpirePlayerSession

func ExpirePlayerSession(sessionId string) *errors.ServerError

func GetMatchById

func GetMatchById(matchId string) (*models.Match, error)

func GetMatches

func GetMatches(playerId string, complete bool) ([]*models.Match, error)

func GetMostRecentTurn

func GetMostRecentTurn(matchId string, playerId string) (*models.Turn, error)

func GetPlayerByEmail

func GetPlayerByEmail(email string) (*models.Player, error)

func GetPlayerById

func GetPlayerById(playerId string) (*models.Player, error)

func GetPlayerSession

func GetPlayerSession(sessionId string) (*models.PlayerSession, *errors.ServerError)

func GetTurn

func GetTurn(turnId string, playerId string) (*models.Turn, error)

func GetTurnForMatch

func GetTurnForMatch(turnId string, matchId string) (*models.Turn, error)

func GetTurns

func GetTurns(matchId string, playerId string) ([]*models.Turn, error)

func InsertMatch

func InsertMatch(match *models.Match) (*models.Match, error)

func InsertPlayer

func InsertPlayer(email string, password string) (*models.Player, error)

func InsertTurn

func InsertTurn(turn *models.Turn) (*models.Turn, error)

func SavePlayerSession

func SavePlayerSession(playerId string, expireTime time.Time) (string, *errors.ServerError)

Types

This section is empty.

Jump to

Keyboard shortcuts

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