implemented GetAllPlayers in inMemoryRepo

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

View File

@ -79,6 +79,10 @@ func (r *InMemoryRepo) GetPlayer(id model.PlayerID) (*model.Player, error) {
return nil, nil
}
func (r *InMemoryRepo) GetAllPlayers() ([]model.Player,error){
return r.players, nil
}
func (r *InMemoryRepo) AddGameResult(result model.GameResult) (model.GameResultID, error) {
id := model.GameResultID(strconv.Itoa(len(r.results)))