From 8b8d982e9ff76f01782f0a24892733f12b6046ef Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Wed, 8 Jan 2025 01:59:10 +0100 Subject: [PATCH] formating --- internal/repo/repo.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/internal/repo/repo.go b/internal/repo/repo.go index eb6a248..85a028a 100644 --- a/internal/repo/repo.go +++ b/internal/repo/repo.go @@ -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. 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) - // 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) - // Get player by id. Returns nil if not found. + // Get player by id. Returns nil if not found. 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) - // 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) }