Documentation ¶
Index ¶
- type MockDB
- func (m *MockDB) AddGame(g *models.Game) error
- func (m *MockDB) AddUser(u *models.User) error
- func (m *MockDB) AddUserId(uid *models.UserId) error
- func (m *MockDB) ChangeGame(gameNew *models.Game, _ *models.GameMove) error
- func (m *MockDB) GetAllGames() ([]*models.Game, error)
- func (m *MockDB) GetGame(gameid string) (*models.Game, error)
- func (m *MockDB) GetUserIdFromUserId(userid string) (*models.UserId, error)
- func (m *MockDB) GetUserIdFromUserName(username string) (*models.UserId, error)
- func (m *MockDB) InviteUser(userid string, gameid string) error
- func (m *MockDB) JoinUser(userid string, gameid string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
func (*MockDB) ChangeGame ¶
func (*MockDB) GetUserIdFromUserId ¶
func (*MockDB) GetUserIdFromUserName ¶
Click to show internal directories.
Click to hide internal directories.