15 lines
313 B
Go
15 lines
313 B
Go
|
package repo
|
||
|
|
||
|
import (
|
||
|
model "git.kapelle.org/niklas/beerpong-elo/internal/model"
|
||
|
)
|
||
|
|
||
|
type Repo interface {
|
||
|
AddGame(game model.InputGame) model.GameID
|
||
|
GetGame(id model.GameID) model.Game
|
||
|
GetAllGames() []model.Game
|
||
|
|
||
|
GetOrCreatePlayerID(name string) model.PlayerID
|
||
|
GetPlayer(id model.PlayerID) *model.Player
|
||
|
}
|