split game.master
This commit is contained in:
12
src/game/storage.go
Normal file
12
src/game/storage.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package game
|
||||
|
||||
import (
|
||||
"local/sandbox/cards/src/entity"
|
||||
)
|
||||
|
||||
type Storage interface {
|
||||
CreateGame(string) error
|
||||
GetGame(string) (entity.Game, error)
|
||||
ListGames() ([]string, error)
|
||||
ReplaceGame(string, entity.Game) error
|
||||
}
|
||||
Reference in New Issue
Block a user