Documentation ¶
Index ¶
- func TestDB(t *testing.T, databaseURL string) (*sql.DB, func(...string))
- type LobbyRepository
- func (r *LobbyRepository) CheckStatus(token string) (string, error)
- func (r *LobbyRepository) ChooseSpyPlayersInLobby(l *model.Lobby) error
- func (r *LobbyRepository) ConnectUserToLobby(l *model.Lobby) error
- func (r *LobbyRepository) Create(l *model.Lobby) error
- func (r *LobbyRepository) FindByToken(token string) (*model.Lobby, error)
- func (r *LobbyRepository) StartGame(l *model.Lobby) error
- func (r *LobbyRepository) WonForPeaceful(l *model.Lobby) (string, error)
- func (r *LobbyRepository) WonForSpy(l *model.Lobby) (string, error)
- type Store
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LobbyRepository ¶
type LobbyRepository struct {
// contains filtered or unexported fields
}
LobbyRepository struct
func (*LobbyRepository) CheckStatus ¶
func (r *LobbyRepository) CheckStatus(token string) (string, error)
CheckStatus func
func (*LobbyRepository) ChooseSpyPlayersInLobby ¶
func (r *LobbyRepository) ChooseSpyPlayersInLobby(l *model.Lobby) error
ChooseSpyPlayersInLobby func
func (*LobbyRepository) ConnectUserToLobby ¶
func (r *LobbyRepository) ConnectUserToLobby(l *model.Lobby) error
ConnectUserToLobby func
func (*LobbyRepository) FindByToken ¶
func (r *LobbyRepository) FindByToken(token string) (*model.Lobby, error)
FindByToken func
func (*LobbyRepository) StartGame ¶
func (r *LobbyRepository) StartGame(l *model.Lobby) error
StartGame func
func (*LobbyRepository) WonForPeaceful ¶
func (r *LobbyRepository) WonForPeaceful(l *model.Lobby) (string, error)
WonForPeaceful func
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
UserRepository struct
func (*UserRepository) FindByLogin ¶
func (r *UserRepository) FindByLogin(login string) (*model.User, error)
FindByLogin func
Click to show internal directories.
Click to hide internal directories.