Documentation ¶
Index ¶
- type GameLogic
- func (_m *GameLogic) GetGameByID(ctx context.Context, gameID *uuid.UUID) (*domain.Game, error)
- func (_m *GameLogic) GetGameStat(ctx context.Context, gameID *uuid.UUID) (*domain.GameStat, error)
- func (_m *GameLogic) Guess(ctx context.Context, gameID *uuid.UUID, letter string) (bool, error)
- func (_m *GameLogic) StartNewGame(ctx context.Context, attemptCount int, w *domain.Word) (*uuid.UUID, error)
- type GameRW
- type GameRepository
- func (_m *GameRepository) GetGame(ctx context.Context, gameID *uuid.UUID) (*domain.Game, error)
- func (_m *GameRepository) GetWordList(ctx context.Context) ([]*domain.Word, error)
- func (_m *GameRepository) SaveGame(ctx context.Context, game *domain.Game) error
- func (_m *GameRepository) SaveWord(ctx context.Context, word *domain.Word) error
- type Handler
- func (_m *Handler) GetGameByID(ctx context.Context, gameID *uuid.UUID) (*domain.Game, error)
- func (_m *Handler) GetGameStat(ctx context.Context, gameID *uuid.UUID) (*domain.GameStat, error)
- func (_m *Handler) GetRandomWord(ctx context.Context) (*domain.Word, error)
- func (_m *Handler) Guess(ctx context.Context, gameID *uuid.UUID, letter string) (bool, error)
- func (_m *Handler) StartNewGame(ctx context.Context, attemptCount int, w *domain.Word) (*uuid.UUID, error)
- func (_m *Handler) WordCreate(ctx context.Context, s string) (*domain.Word, error)
- type WordLogic
- type WordRW
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameLogic ¶
GameLogic is an autogenerated mock type for the GameLogic type
func (*GameLogic) GetGameByID ¶
GetGameByID provides a mock function with given fields: ctx, gameID
func (*GameLogic) GetGameStat ¶
GetGameStat provides a mock function with given fields: ctx, gameID
type GameRW ¶
GameRW is an autogenerated mock type for the GameRW type
type GameRepository ¶
GameRepository is an autogenerated mock type for the GameRepository type
func (*GameRepository) GetWordList ¶
GetWordList provides a mock function with given fields: ctx
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func (*Handler) GetGameByID ¶
GetGameByID provides a mock function with given fields: ctx, gameID
func (*Handler) GetGameStat ¶
GetGameStat provides a mock function with given fields: ctx, gameID
func (*Handler) GetRandomWord ¶
GetRandomWord provides a mock function with given fields: ctx
type WordLogic ¶
WordLogic is an autogenerated mock type for the WordLogic type
func (*WordLogic) GetRandomWord ¶
GetRandomWord provides a mock function with given fields: ctx
type WordRW ¶
WordRW is an autogenerated mock type for the WordRW type
func (*WordRW) GetWordList ¶
GetWordList provides a mock function with given fields: ctx