formating

This commit is contained in:
Niklas Kapelle 2025-01-08 01:59:10 +01:00
parent 6a1e9148d6
commit 8b8d982e9f
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

View File

@ -8,7 +8,7 @@ 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.
@ -17,6 +17,8 @@ type Repo interface {
// 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)
GetAllPlayers() ([]model.Player, error)
// Adds a game result. ID needs to be nil on argument. // Adds a game result. ID needs to be nil on argument.
AddGameResult(model.GameResult) (model.GameResultID, error) AddGameResult(model.GameResult) (model.GameResultID, error)