formating
This commit is contained in:
parent
6a1e9148d6
commit
8b8d982e9f
@ -8,18 +8,20 @@ type Repo interface {
|
|||||||
// Add a new game to the repo. ID needs to be nil on argument. PlayerID are fetched beforehand.
|
// Add a new game to the repo. ID needs to be nil on argument. PlayerID are fetched beforehand.
|
||||||
AddGame(model.Game) (model.GameID, error)
|
AddGame(model.Game) (model.GameID, error)
|
||||||
|
|
||||||
//Get a game by ID. Returns nil if not found.
|
// Get a game by ID. Returns nil if not found.
|
||||||
GetGame(model.GameID) (*model.Game, error)
|
GetGame(model.GameID) (*model.Game, error)
|
||||||
|
|
||||||
// Get ID of a player. Creates one if not found.
|
// Get ID of a player. Creates one if not found.
|
||||||
GetOrCreatePlayerID(string) (model.PlayerID, error)
|
GetOrCreatePlayerID(string) (model.PlayerID, error)
|
||||||
|
|
||||||
// Get player by id. Returns nil if not found.
|
// Get player by id. Returns nil if not found.
|
||||||
GetPlayer(model.PlayerID) (*model.Player, error)
|
GetPlayer(model.PlayerID) (*model.Player, error)
|
||||||
|
|
||||||
// Adds a game result. ID needs to be nil on argument.
|
GetAllPlayers() ([]model.Player, error)
|
||||||
|
|
||||||
|
// Adds a game result. ID needs to be nil on argument.
|
||||||
AddGameResult(model.GameResult) (model.GameResultID, error)
|
AddGameResult(model.GameResult) (model.GameResultID, error)
|
||||||
|
|
||||||
// Get a game result by ID. Returns nil if not found.
|
// Get a game result by ID. Returns nil if not found.
|
||||||
GetGameResult(model.GameResultID) (*model.GameResult, error)
|
GetGameResult(model.GameResultID) (*model.GameResult, error)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user