Documentation ¶
Overview ¶
Package service is a generated GoMock package.
Index ¶
- type GameListService
- type JWTService
- type MockGamelistRepository
- func (m *MockGamelistRepository) CreateListType(arg0 entity.ListType) error
- func (m *MockGamelistRepository) CreateProfile(arg0 entity.Profile) error
- func (m *MockGamelistRepository) DeleteAllUserRefreshTokens(arg0 string) error
- func (m *MockGamelistRepository) DeleteRefreshToken(arg0 string) error
- func (m *MockGamelistRepository) EXPECT() *MockGamelistRepositoryMockRecorder
- func (m *MockGamelistRepository) FindRefreshToken(arg0, arg1 string) error
- func (m *MockGamelistRepository) GetAllGames() ([]entity.GameProperties, error)
- func (m *MockGamelistRepository) GetAllGamesTyped(arg0 string, arg1 uint64, arg2 int) ([]entity.TypedGameListProperties, error)
- func (m *MockGamelistRepository) GetAllGenres() ([]entity.Genre, error)
- func (m *MockGamelistRepository) GetAllListTypes() ([]entity.ListType, error)
- func (m *MockGamelistRepository) GetAllPlatforms() ([]entity.Platform, error)
- func (m *MockGamelistRepository) GetAllProfiles() ([]entity.ProfileInfo, error)
- func (m *MockGamelistRepository) GetAllSocialTypes() ([]entity.SocialType, error)
- func (m *MockGamelistRepository) GetGameDetails(arg0 string, arg1 uint64) (*entity.GameDetailsResponse, error)
- func (m *MockGamelistRepository) GetProfile(arg0 entity.ProfileCreds) (*entity.Profile, error)
- func (m *MockGamelistRepository) GetUserGameList(arg0 string) ([]entity.TypedGameListProperties, error)
- func (m *MockGamelistRepository) ListGame(arg0 string, arg1, arg2 uint64) error
- func (m *MockGamelistRepository) SaveGame(arg0 entity.GameProperties) error
- func (m *MockGamelistRepository) SaveGenre(arg0 entity.Genre) error
- func (m *MockGamelistRepository) SavePlatform(arg0 entity.Platform) error
- func (m *MockGamelistRepository) SaveProfile(arg0 entity.Profile) error
- func (m *MockGamelistRepository) SaveRefreshToken(arg0, arg1 string) error
- func (m *MockGamelistRepository) SaveSocialType(arg0 entity.SocialType) error
- func (m *MockGamelistRepository) SearchGames(arg0 string) ([]entity.GameSearchResult, error)
- type MockGamelistRepositoryMockRecorder
- func (mr *MockGamelistRepositoryMockRecorder) CreateListType(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) CreateProfile(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) DeleteAllUserRefreshTokens(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) DeleteRefreshToken(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) FindRefreshToken(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetAllGames() *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetAllGamesTyped(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetAllGenres() *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetAllListTypes() *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetAllPlatforms() *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetAllProfiles() *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetAllSocialTypes() *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetGameDetails(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetProfile(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) GetUserGameList(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) ListGame(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) SaveGame(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) SaveGenre(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) SavePlatform(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) SaveProfile(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) SaveRefreshToken(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) SaveSocialType(arg0 interface{}) *gomock.Call
- func (mr *MockGamelistRepositoryMockRecorder) SearchGames(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameListService ¶
type GameListService interface { SaveGame(game entity.GameProperties) error GetAllGames() ([]entity.GameProperties, error) GetAllGamesTyped(nickname string, last uint64, batchSize int) ([]entity.TypedGameListProperties, error) GetUserGameList(nickname string) ([]entity.TypedGameListProperties, error) SearchGames(name string) ([]entity.GameSearchResult, error) GetGameDetails(nickname string, gameId uint64) (*entity.GameDetailsResponse, error) CreateListType(listType entity.ListType) error GetAllListTypes() ([]entity.ListType, error) ListGame(nickname string, gameId uint64, listType uint64) error SaveGenre(genre entity.Genre) error GetAllGenres() ([]entity.Genre, error) SavePlatform(platform entity.Platform) error GetAllPlatforms() ([]entity.Platform, error) CreateProfile(profile entity.Profile) error SaveProfile(profile entity.Profile) error GetAllProfiles() ([]entity.ProfileInfo, error) CheckLogin(login entity.LoginProfile) (*entity.Profile, error) SaveSocialType(socialType entity.SocialType) error GetAllSocialTypes() ([]entity.SocialType, error) // gRPC ScrapeGames() }
func NewGameListService ¶
func NewGameListService(repo repository.GamelistRepository, scraperGRPCAddress string) GameListService
type JWTService ¶
type JWTService interface { GenerateTokens(user string) (*entity.TokenPair, error) Authenticate(tokenString string) (string, error) RefreshTokens(refreshToken string) (*entity.TokenPair, error) RevokeRefreshToken(refreshToken string) error DeleteAllUserRefreshTokens(nickname string) error }
func NewJWTService ¶
func NewJWTService(repo repository.GamelistRepository) JWTService
type MockGamelistRepository ¶
type MockGamelistRepository struct {
// contains filtered or unexported fields
}
MockGamelistRepository is a mock of GamelistRepository interface.
func NewMockGamelistRepository ¶
func NewMockGamelistRepository(ctrl *gomock.Controller) *MockGamelistRepository
NewMockGamelistRepository creates a new mock instance.
func (*MockGamelistRepository) CreateListType ¶
func (m *MockGamelistRepository) CreateListType(arg0 entity.ListType) error
CreateListType mocks base method.
func (*MockGamelistRepository) CreateProfile ¶
func (m *MockGamelistRepository) CreateProfile(arg0 entity.Profile) error
CreateProfile mocks base method.
func (*MockGamelistRepository) DeleteAllUserRefreshTokens ¶
func (m *MockGamelistRepository) DeleteAllUserRefreshTokens(arg0 string) error
DeleteAllUserRefreshTokens mocks base method.
func (*MockGamelistRepository) DeleteRefreshToken ¶
func (m *MockGamelistRepository) DeleteRefreshToken(arg0 string) error
DeleteRefreshToken mocks base method.
func (*MockGamelistRepository) EXPECT ¶
func (m *MockGamelistRepository) EXPECT() *MockGamelistRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGamelistRepository) FindRefreshToken ¶
func (m *MockGamelistRepository) FindRefreshToken(arg0, arg1 string) error
FindRefreshToken mocks base method.
func (*MockGamelistRepository) GetAllGames ¶
func (m *MockGamelistRepository) GetAllGames() ([]entity.GameProperties, error)
GetAllGames mocks base method.
func (*MockGamelistRepository) GetAllGamesTyped ¶
func (m *MockGamelistRepository) GetAllGamesTyped(arg0 string, arg1 uint64, arg2 int) ([]entity.TypedGameListProperties, error)
GetAllGamesTyped mocks base method.
func (*MockGamelistRepository) GetAllGenres ¶
func (m *MockGamelistRepository) GetAllGenres() ([]entity.Genre, error)
GetAllGenres mocks base method.
func (*MockGamelistRepository) GetAllListTypes ¶
func (m *MockGamelistRepository) GetAllListTypes() ([]entity.ListType, error)
GetAllListTypes mocks base method.
func (*MockGamelistRepository) GetAllPlatforms ¶
func (m *MockGamelistRepository) GetAllPlatforms() ([]entity.Platform, error)
GetAllPlatforms mocks base method.
func (*MockGamelistRepository) GetAllProfiles ¶
func (m *MockGamelistRepository) GetAllProfiles() ([]entity.ProfileInfo, error)
GetAllProfiles mocks base method.
func (*MockGamelistRepository) GetAllSocialTypes ¶
func (m *MockGamelistRepository) GetAllSocialTypes() ([]entity.SocialType, error)
GetAllSocialTypes mocks base method.
func (*MockGamelistRepository) GetGameDetails ¶
func (m *MockGamelistRepository) GetGameDetails(arg0 string, arg1 uint64) (*entity.GameDetailsResponse, error)
GetGameDetails mocks base method.
func (*MockGamelistRepository) GetProfile ¶
func (m *MockGamelistRepository) GetProfile(arg0 entity.ProfileCreds) (*entity.Profile, error)
GetProfile mocks base method.
func (*MockGamelistRepository) GetUserGameList ¶
func (m *MockGamelistRepository) GetUserGameList(arg0 string) ([]entity.TypedGameListProperties, error)
GetUserGameList mocks base method.
func (*MockGamelistRepository) ListGame ¶
func (m *MockGamelistRepository) ListGame(arg0 string, arg1, arg2 uint64) error
ListGame mocks base method.
func (*MockGamelistRepository) SaveGame ¶
func (m *MockGamelistRepository) SaveGame(arg0 entity.GameProperties) error
SaveGame mocks base method.
func (*MockGamelistRepository) SaveGenre ¶
func (m *MockGamelistRepository) SaveGenre(arg0 entity.Genre) error
SaveGenre mocks base method.
func (*MockGamelistRepository) SavePlatform ¶
func (m *MockGamelistRepository) SavePlatform(arg0 entity.Platform) error
SavePlatform mocks base method.
func (*MockGamelistRepository) SaveProfile ¶
func (m *MockGamelistRepository) SaveProfile(arg0 entity.Profile) error
SaveProfile mocks base method.
func (*MockGamelistRepository) SaveRefreshToken ¶
func (m *MockGamelistRepository) SaveRefreshToken(arg0, arg1 string) error
SaveRefreshToken mocks base method.
func (*MockGamelistRepository) SaveSocialType ¶
func (m *MockGamelistRepository) SaveSocialType(arg0 entity.SocialType) error
SaveSocialType mocks base method.
func (*MockGamelistRepository) SearchGames ¶
func (m *MockGamelistRepository) SearchGames(arg0 string) ([]entity.GameSearchResult, error)
SearchGames mocks base method.
type MockGamelistRepositoryMockRecorder ¶
type MockGamelistRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockGamelistRepositoryMockRecorder is the mock recorder for MockGamelistRepository.
func (*MockGamelistRepositoryMockRecorder) CreateListType ¶
func (mr *MockGamelistRepositoryMockRecorder) CreateListType(arg0 interface{}) *gomock.Call
CreateListType indicates an expected call of CreateListType.
func (*MockGamelistRepositoryMockRecorder) CreateProfile ¶
func (mr *MockGamelistRepositoryMockRecorder) CreateProfile(arg0 interface{}) *gomock.Call
CreateProfile indicates an expected call of CreateProfile.
func (*MockGamelistRepositoryMockRecorder) DeleteAllUserRefreshTokens ¶
func (mr *MockGamelistRepositoryMockRecorder) DeleteAllUserRefreshTokens(arg0 interface{}) *gomock.Call
DeleteAllUserRefreshTokens indicates an expected call of DeleteAllUserRefreshTokens.
func (*MockGamelistRepositoryMockRecorder) DeleteRefreshToken ¶
func (mr *MockGamelistRepositoryMockRecorder) DeleteRefreshToken(arg0 interface{}) *gomock.Call
DeleteRefreshToken indicates an expected call of DeleteRefreshToken.
func (*MockGamelistRepositoryMockRecorder) FindRefreshToken ¶
func (mr *MockGamelistRepositoryMockRecorder) FindRefreshToken(arg0, arg1 interface{}) *gomock.Call
FindRefreshToken indicates an expected call of FindRefreshToken.
func (*MockGamelistRepositoryMockRecorder) GetAllGames ¶
func (mr *MockGamelistRepositoryMockRecorder) GetAllGames() *gomock.Call
GetAllGames indicates an expected call of GetAllGames.
func (*MockGamelistRepositoryMockRecorder) GetAllGamesTyped ¶
func (mr *MockGamelistRepositoryMockRecorder) GetAllGamesTyped(arg0, arg1, arg2 interface{}) *gomock.Call
GetAllGamesTyped indicates an expected call of GetAllGamesTyped.
func (*MockGamelistRepositoryMockRecorder) GetAllGenres ¶
func (mr *MockGamelistRepositoryMockRecorder) GetAllGenres() *gomock.Call
GetAllGenres indicates an expected call of GetAllGenres.
func (*MockGamelistRepositoryMockRecorder) GetAllListTypes ¶
func (mr *MockGamelistRepositoryMockRecorder) GetAllListTypes() *gomock.Call
GetAllListTypes indicates an expected call of GetAllListTypes.
func (*MockGamelistRepositoryMockRecorder) GetAllPlatforms ¶
func (mr *MockGamelistRepositoryMockRecorder) GetAllPlatforms() *gomock.Call
GetAllPlatforms indicates an expected call of GetAllPlatforms.
func (*MockGamelistRepositoryMockRecorder) GetAllProfiles ¶
func (mr *MockGamelistRepositoryMockRecorder) GetAllProfiles() *gomock.Call
GetAllProfiles indicates an expected call of GetAllProfiles.
func (*MockGamelistRepositoryMockRecorder) GetAllSocialTypes ¶
func (mr *MockGamelistRepositoryMockRecorder) GetAllSocialTypes() *gomock.Call
GetAllSocialTypes indicates an expected call of GetAllSocialTypes.
func (*MockGamelistRepositoryMockRecorder) GetGameDetails ¶
func (mr *MockGamelistRepositoryMockRecorder) GetGameDetails(arg0, arg1 interface{}) *gomock.Call
GetGameDetails indicates an expected call of GetGameDetails.
func (*MockGamelistRepositoryMockRecorder) GetProfile ¶
func (mr *MockGamelistRepositoryMockRecorder) GetProfile(arg0 interface{}) *gomock.Call
GetProfile indicates an expected call of GetProfile.
func (*MockGamelistRepositoryMockRecorder) GetUserGameList ¶
func (mr *MockGamelistRepositoryMockRecorder) GetUserGameList(arg0 interface{}) *gomock.Call
GetUserGameList indicates an expected call of GetUserGameList.
func (*MockGamelistRepositoryMockRecorder) ListGame ¶
func (mr *MockGamelistRepositoryMockRecorder) ListGame(arg0, arg1, arg2 interface{}) *gomock.Call
ListGame indicates an expected call of ListGame.
func (*MockGamelistRepositoryMockRecorder) SaveGame ¶
func (mr *MockGamelistRepositoryMockRecorder) SaveGame(arg0 interface{}) *gomock.Call
SaveGame indicates an expected call of SaveGame.
func (*MockGamelistRepositoryMockRecorder) SaveGenre ¶
func (mr *MockGamelistRepositoryMockRecorder) SaveGenre(arg0 interface{}) *gomock.Call
SaveGenre indicates an expected call of SaveGenre.
func (*MockGamelistRepositoryMockRecorder) SavePlatform ¶
func (mr *MockGamelistRepositoryMockRecorder) SavePlatform(arg0 interface{}) *gomock.Call
SavePlatform indicates an expected call of SavePlatform.
func (*MockGamelistRepositoryMockRecorder) SaveProfile ¶
func (mr *MockGamelistRepositoryMockRecorder) SaveProfile(arg0 interface{}) *gomock.Call
SaveProfile indicates an expected call of SaveProfile.
func (*MockGamelistRepositoryMockRecorder) SaveRefreshToken ¶
func (mr *MockGamelistRepositoryMockRecorder) SaveRefreshToken(arg0, arg1 interface{}) *gomock.Call
SaveRefreshToken indicates an expected call of SaveRefreshToken.
func (*MockGamelistRepositoryMockRecorder) SaveSocialType ¶
func (mr *MockGamelistRepositoryMockRecorder) SaveSocialType(arg0 interface{}) *gomock.Call
SaveSocialType indicates an expected call of SaveSocialType.
func (*MockGamelistRepositoryMockRecorder) SearchGames ¶
func (mr *MockGamelistRepositoryMockRecorder) SearchGames(arg0 interface{}) *gomock.Call
SearchGames indicates an expected call of SearchGames.