Documentation
¶
Index ¶
- type Querier
- func (_mock *Querier) CompletePrediction(ctx context.Context, arg db.CompletePredictionParams) error
- func (_mock *Querier) CreateLoginHistory(ctx context.Context, arg db.CreateLoginHistoryParams) (uuid.UUID, error)
- func (_mock *Querier) CreateNewPrediction(ctx context.Context, arg db.CreateNewPredictionParams) (db.Prediction, error)
- func (_mock *Querier) CreateRefreshToken(ctx context.Context, arg db.CreateRefreshTokenParams) (uuid.UUID, error)
- func (_mock *Querier) CreateUser(ctx context.Context, arg db.CreateUserParams) (uuid.UUID, error)
- func (_mock *Querier) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (_m *Querier) EXPECT() *Querier_Expecter
- func (_mock *Querier) GetActiveTokensByUser(ctx context.Context, userID uuid.UUID) ([]db.RefreshToken, error)
- func (_mock *Querier) GetLoginHistoryByUser(ctx context.Context, arg db.GetLoginHistoryByUserParams) ([]db.LoginHistory, error)
- func (_mock *Querier) GetPrediction(ctx context.Context, id uuid.UUID) (db.Prediction, error)
- func (_mock *Querier) GetPredictionsByUserID(ctx context.Context, arg db.GetPredictionsByUserIDParams) ([]db.Prediction, error)
- func (_mock *Querier) GetRefreshTokenByHash(ctx context.Context, tokenHash string) (db.RefreshToken, error)
- func (_mock *Querier) GetStatsByUserID(ctx context.Context, userID uuid.UUID) (db.Stat, error)
- func (_mock *Querier) GetUserByID(ctx context.Context, id uuid.UUID) (db.User, error)
- func (_mock *Querier) GetUserByLogin(ctx context.Context, login string) (db.User, error)
- func (_mock *Querier) RevokeAllUserTokens(ctx context.Context, userID uuid.UUID) error
- func (_mock *Querier) RevokeRefreshToken(ctx context.Context, tokenHash string) error
- func (_mock *Querier) UpdateStats(ctx context.Context, arg db.UpdateStatsParams) error
- func (_mock *Querier) UpdateUser(ctx context.Context, arg db.UpdateUserParams) error
- func (_mock *Querier) UpdateUserAvatar(ctx context.Context, arg db.UpdateUserAvatarParams) error
- func (_mock *Querier) UpdateUserPassword(ctx context.Context, arg db.UpdateUserPasswordParams) error
- type Querier_CompletePrediction_Call
- func (_c *Querier_CompletePrediction_Call) Return(err error) *Querier_CompletePrediction_Call
- func (_c *Querier_CompletePrediction_Call) Run(run func(ctx context.Context, arg db.CompletePredictionParams)) *Querier_CompletePrediction_Call
- func (_c *Querier_CompletePrediction_Call) RunAndReturn(run func(ctx context.Context, arg db.CompletePredictionParams) error) *Querier_CompletePrediction_Call
- type Querier_CreateLoginHistory_Call
- func (_c *Querier_CreateLoginHistory_Call) Return(uUID uuid.UUID, err error) *Querier_CreateLoginHistory_Call
- func (_c *Querier_CreateLoginHistory_Call) Run(run func(ctx context.Context, arg db.CreateLoginHistoryParams)) *Querier_CreateLoginHistory_Call
- func (_c *Querier_CreateLoginHistory_Call) RunAndReturn(...) *Querier_CreateLoginHistory_Call
- type Querier_CreateNewPrediction_Call
- func (_c *Querier_CreateNewPrediction_Call) Return(prediction db.Prediction, err error) *Querier_CreateNewPrediction_Call
- func (_c *Querier_CreateNewPrediction_Call) Run(run func(ctx context.Context, arg db.CreateNewPredictionParams)) *Querier_CreateNewPrediction_Call
- func (_c *Querier_CreateNewPrediction_Call) RunAndReturn(...) *Querier_CreateNewPrediction_Call
- type Querier_CreateRefreshToken_Call
- func (_c *Querier_CreateRefreshToken_Call) Return(uUID uuid.UUID, err error) *Querier_CreateRefreshToken_Call
- func (_c *Querier_CreateRefreshToken_Call) Run(run func(ctx context.Context, arg db.CreateRefreshTokenParams)) *Querier_CreateRefreshToken_Call
- func (_c *Querier_CreateRefreshToken_Call) RunAndReturn(...) *Querier_CreateRefreshToken_Call
- type Querier_CreateUser_Call
- func (_c *Querier_CreateUser_Call) Return(uUID uuid.UUID, err error) *Querier_CreateUser_Call
- func (_c *Querier_CreateUser_Call) Run(run func(ctx context.Context, arg db.CreateUserParams)) *Querier_CreateUser_Call
- func (_c *Querier_CreateUser_Call) RunAndReturn(run func(ctx context.Context, arg db.CreateUserParams) (uuid.UUID, error)) *Querier_CreateUser_Call
- type Querier_DeleteUser_Call
- func (_c *Querier_DeleteUser_Call) Return(err error) *Querier_DeleteUser_Call
- func (_c *Querier_DeleteUser_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Querier_DeleteUser_Call
- func (_c *Querier_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) error) *Querier_DeleteUser_Call
- type Querier_Expecter
- func (_e *Querier_Expecter) CompletePrediction(ctx interface{}, arg interface{}) *Querier_CompletePrediction_Call
- func (_e *Querier_Expecter) CreateLoginHistory(ctx interface{}, arg interface{}) *Querier_CreateLoginHistory_Call
- func (_e *Querier_Expecter) CreateNewPrediction(ctx interface{}, arg interface{}) *Querier_CreateNewPrediction_Call
- func (_e *Querier_Expecter) CreateRefreshToken(ctx interface{}, arg interface{}) *Querier_CreateRefreshToken_Call
- func (_e *Querier_Expecter) CreateUser(ctx interface{}, arg interface{}) *Querier_CreateUser_Call
- func (_e *Querier_Expecter) DeleteUser(ctx interface{}, id interface{}) *Querier_DeleteUser_Call
- func (_e *Querier_Expecter) GetActiveTokensByUser(ctx interface{}, userID interface{}) *Querier_GetActiveTokensByUser_Call
- func (_e *Querier_Expecter) GetLoginHistoryByUser(ctx interface{}, arg interface{}) *Querier_GetLoginHistoryByUser_Call
- func (_e *Querier_Expecter) GetPrediction(ctx interface{}, id interface{}) *Querier_GetPrediction_Call
- func (_e *Querier_Expecter) GetPredictionsByUserID(ctx interface{}, arg interface{}) *Querier_GetPredictionsByUserID_Call
- func (_e *Querier_Expecter) GetRefreshTokenByHash(ctx interface{}, tokenHash interface{}) *Querier_GetRefreshTokenByHash_Call
- func (_e *Querier_Expecter) GetStatsByUserID(ctx interface{}, userID interface{}) *Querier_GetStatsByUserID_Call
- func (_e *Querier_Expecter) GetUserByID(ctx interface{}, id interface{}) *Querier_GetUserByID_Call
- func (_e *Querier_Expecter) GetUserByLogin(ctx interface{}, login interface{}) *Querier_GetUserByLogin_Call
- func (_e *Querier_Expecter) RevokeAllUserTokens(ctx interface{}, userID interface{}) *Querier_RevokeAllUserTokens_Call
- func (_e *Querier_Expecter) RevokeRefreshToken(ctx interface{}, tokenHash interface{}) *Querier_RevokeRefreshToken_Call
- func (_e *Querier_Expecter) UpdateStats(ctx interface{}, arg interface{}) *Querier_UpdateStats_Call
- func (_e *Querier_Expecter) UpdateUser(ctx interface{}, arg interface{}) *Querier_UpdateUser_Call
- func (_e *Querier_Expecter) UpdateUserAvatar(ctx interface{}, arg interface{}) *Querier_UpdateUserAvatar_Call
- func (_e *Querier_Expecter) UpdateUserPassword(ctx interface{}, arg interface{}) *Querier_UpdateUserPassword_Call
- type Querier_GetActiveTokensByUser_Call
- func (_c *Querier_GetActiveTokensByUser_Call) Return(refreshTokens []db.RefreshToken, err error) *Querier_GetActiveTokensByUser_Call
- func (_c *Querier_GetActiveTokensByUser_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *Querier_GetActiveTokensByUser_Call
- func (_c *Querier_GetActiveTokensByUser_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) ([]db.RefreshToken, error)) *Querier_GetActiveTokensByUser_Call
- type Querier_GetLoginHistoryByUser_Call
- func (_c *Querier_GetLoginHistoryByUser_Call) Return(loginHistorys []db.LoginHistory, err error) *Querier_GetLoginHistoryByUser_Call
- func (_c *Querier_GetLoginHistoryByUser_Call) Run(run func(ctx context.Context, arg db.GetLoginHistoryByUserParams)) *Querier_GetLoginHistoryByUser_Call
- func (_c *Querier_GetLoginHistoryByUser_Call) RunAndReturn(...) *Querier_GetLoginHistoryByUser_Call
- type Querier_GetPrediction_Call
- func (_c *Querier_GetPrediction_Call) Return(prediction db.Prediction, err error) *Querier_GetPrediction_Call
- func (_c *Querier_GetPrediction_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Querier_GetPrediction_Call
- func (_c *Querier_GetPrediction_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (db.Prediction, error)) *Querier_GetPrediction_Call
- type Querier_GetPredictionsByUserID_Call
- func (_c *Querier_GetPredictionsByUserID_Call) Return(predictions []db.Prediction, err error) *Querier_GetPredictionsByUserID_Call
- func (_c *Querier_GetPredictionsByUserID_Call) Run(run func(ctx context.Context, arg db.GetPredictionsByUserIDParams)) *Querier_GetPredictionsByUserID_Call
- func (_c *Querier_GetPredictionsByUserID_Call) RunAndReturn(...) *Querier_GetPredictionsByUserID_Call
- type Querier_GetRefreshTokenByHash_Call
- func (_c *Querier_GetRefreshTokenByHash_Call) Return(refreshToken db.RefreshToken, err error) *Querier_GetRefreshTokenByHash_Call
- func (_c *Querier_GetRefreshTokenByHash_Call) Run(run func(ctx context.Context, tokenHash string)) *Querier_GetRefreshTokenByHash_Call
- func (_c *Querier_GetRefreshTokenByHash_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) (db.RefreshToken, error)) *Querier_GetRefreshTokenByHash_Call
- type Querier_GetStatsByUserID_Call
- func (_c *Querier_GetStatsByUserID_Call) Return(stat db.Stat, err error) *Querier_GetStatsByUserID_Call
- func (_c *Querier_GetStatsByUserID_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *Querier_GetStatsByUserID_Call
- func (_c *Querier_GetStatsByUserID_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) (db.Stat, error)) *Querier_GetStatsByUserID_Call
- type Querier_GetUserByID_Call
- func (_c *Querier_GetUserByID_Call) Return(user db.User, err error) *Querier_GetUserByID_Call
- func (_c *Querier_GetUserByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Querier_GetUserByID_Call
- func (_c *Querier_GetUserByID_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (db.User, error)) *Querier_GetUserByID_Call
- type Querier_GetUserByLogin_Call
- func (_c *Querier_GetUserByLogin_Call) Return(user db.User, err error) *Querier_GetUserByLogin_Call
- func (_c *Querier_GetUserByLogin_Call) Run(run func(ctx context.Context, login string)) *Querier_GetUserByLogin_Call
- func (_c *Querier_GetUserByLogin_Call) RunAndReturn(run func(ctx context.Context, login string) (db.User, error)) *Querier_GetUserByLogin_Call
- type Querier_RevokeAllUserTokens_Call
- func (_c *Querier_RevokeAllUserTokens_Call) Return(err error) *Querier_RevokeAllUserTokens_Call
- func (_c *Querier_RevokeAllUserTokens_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *Querier_RevokeAllUserTokens_Call
- func (_c *Querier_RevokeAllUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) error) *Querier_RevokeAllUserTokens_Call
- type Querier_RevokeRefreshToken_Call
- func (_c *Querier_RevokeRefreshToken_Call) Return(err error) *Querier_RevokeRefreshToken_Call
- func (_c *Querier_RevokeRefreshToken_Call) Run(run func(ctx context.Context, tokenHash string)) *Querier_RevokeRefreshToken_Call
- func (_c *Querier_RevokeRefreshToken_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) error) *Querier_RevokeRefreshToken_Call
- type Querier_UpdateStats_Call
- func (_c *Querier_UpdateStats_Call) Return(err error) *Querier_UpdateStats_Call
- func (_c *Querier_UpdateStats_Call) Run(run func(ctx context.Context, arg db.UpdateStatsParams)) *Querier_UpdateStats_Call
- func (_c *Querier_UpdateStats_Call) RunAndReturn(run func(ctx context.Context, arg db.UpdateStatsParams) error) *Querier_UpdateStats_Call
- type Querier_UpdateUserAvatar_Call
- func (_c *Querier_UpdateUserAvatar_Call) Return(err error) *Querier_UpdateUserAvatar_Call
- func (_c *Querier_UpdateUserAvatar_Call) Run(run func(ctx context.Context, arg db.UpdateUserAvatarParams)) *Querier_UpdateUserAvatar_Call
- func (_c *Querier_UpdateUserAvatar_Call) RunAndReturn(run func(ctx context.Context, arg db.UpdateUserAvatarParams) error) *Querier_UpdateUserAvatar_Call
- type Querier_UpdateUserPassword_Call
- func (_c *Querier_UpdateUserPassword_Call) Return(err error) *Querier_UpdateUserPassword_Call
- func (_c *Querier_UpdateUserPassword_Call) Run(run func(ctx context.Context, arg db.UpdateUserPasswordParams)) *Querier_UpdateUserPassword_Call
- func (_c *Querier_UpdateUserPassword_Call) RunAndReturn(run func(ctx context.Context, arg db.UpdateUserPasswordParams) error) *Querier_UpdateUserPassword_Call
- type Querier_UpdateUser_Call
- func (_c *Querier_UpdateUser_Call) Return(err error) *Querier_UpdateUser_Call
- func (_c *Querier_UpdateUser_Call) Run(run func(ctx context.Context, arg db.UpdateUserParams)) *Querier_UpdateUser_Call
- func (_c *Querier_UpdateUser_Call) RunAndReturn(run func(ctx context.Context, arg db.UpdateUserParams) error) *Querier_UpdateUser_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Querier ¶
Querier is an autogenerated mock type for the Querier type
func NewQuerier ¶
NewQuerier creates a new instance of Querier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Querier) CompletePrediction ¶
func (_mock *Querier) CompletePrediction(ctx context.Context, arg db.CompletePredictionParams) error
CompletePrediction provides a mock function for the type Querier
func (*Querier) CreateLoginHistory ¶
func (_mock *Querier) CreateLoginHistory(ctx context.Context, arg db.CreateLoginHistoryParams) (uuid.UUID, error)
CreateLoginHistory provides a mock function for the type Querier
func (*Querier) CreateNewPrediction ¶
func (_mock *Querier) CreateNewPrediction(ctx context.Context, arg db.CreateNewPredictionParams) (db.Prediction, error)
CreateNewPrediction provides a mock function for the type Querier
func (*Querier) CreateRefreshToken ¶
func (_mock *Querier) CreateRefreshToken(ctx context.Context, arg db.CreateRefreshTokenParams) (uuid.UUID, error)
CreateRefreshToken provides a mock function for the type Querier
func (*Querier) CreateUser ¶
CreateUser provides a mock function for the type Querier
func (*Querier) DeleteUser ¶
DeleteUser provides a mock function for the type Querier
func (*Querier) EXPECT ¶
func (_m *Querier) EXPECT() *Querier_Expecter
func (*Querier) GetActiveTokensByUser ¶
func (_mock *Querier) GetActiveTokensByUser(ctx context.Context, userID uuid.UUID) ([]db.RefreshToken, error)
GetActiveTokensByUser provides a mock function for the type Querier
func (*Querier) GetLoginHistoryByUser ¶
func (_mock *Querier) GetLoginHistoryByUser(ctx context.Context, arg db.GetLoginHistoryByUserParams) ([]db.LoginHistory, error)
GetLoginHistoryByUser provides a mock function for the type Querier
func (*Querier) GetPrediction ¶
GetPrediction provides a mock function for the type Querier
func (*Querier) GetPredictionsByUserID ¶
func (_mock *Querier) GetPredictionsByUserID(ctx context.Context, arg db.GetPredictionsByUserIDParams) ([]db.Prediction, error)
GetPredictionsByUserID provides a mock function for the type Querier
func (*Querier) GetRefreshTokenByHash ¶
func (_mock *Querier) GetRefreshTokenByHash(ctx context.Context, tokenHash string) (db.RefreshToken, error)
GetRefreshTokenByHash provides a mock function for the type Querier
func (*Querier) GetStatsByUserID ¶
GetStatsByUserID provides a mock function for the type Querier
func (*Querier) GetUserByID ¶
GetUserByID provides a mock function for the type Querier
func (*Querier) GetUserByLogin ¶
GetUserByLogin provides a mock function for the type Querier
func (*Querier) RevokeAllUserTokens ¶
RevokeAllUserTokens provides a mock function for the type Querier
func (*Querier) RevokeRefreshToken ¶
RevokeRefreshToken provides a mock function for the type Querier
func (*Querier) UpdateStats ¶
UpdateStats provides a mock function for the type Querier
func (*Querier) UpdateUser ¶
UpdateUser provides a mock function for the type Querier
func (*Querier) UpdateUserAvatar ¶
UpdateUserAvatar provides a mock function for the type Querier
func (*Querier) UpdateUserPassword ¶
func (_mock *Querier) UpdateUserPassword(ctx context.Context, arg db.UpdateUserPasswordParams) error
UpdateUserPassword provides a mock function for the type Querier
type Querier_CompletePrediction_Call ¶
Querier_CompletePrediction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompletePrediction'
func (*Querier_CompletePrediction_Call) Return ¶
func (_c *Querier_CompletePrediction_Call) Return(err error) *Querier_CompletePrediction_Call
func (*Querier_CompletePrediction_Call) Run ¶
func (_c *Querier_CompletePrediction_Call) Run(run func(ctx context.Context, arg db.CompletePredictionParams)) *Querier_CompletePrediction_Call
func (*Querier_CompletePrediction_Call) RunAndReturn ¶
func (_c *Querier_CompletePrediction_Call) RunAndReturn(run func(ctx context.Context, arg db.CompletePredictionParams) error) *Querier_CompletePrediction_Call
type Querier_CreateLoginHistory_Call ¶
Querier_CreateLoginHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateLoginHistory'
func (*Querier_CreateLoginHistory_Call) Return ¶
func (_c *Querier_CreateLoginHistory_Call) Return(uUID uuid.UUID, err error) *Querier_CreateLoginHistory_Call
func (*Querier_CreateLoginHistory_Call) Run ¶
func (_c *Querier_CreateLoginHistory_Call) Run(run func(ctx context.Context, arg db.CreateLoginHistoryParams)) *Querier_CreateLoginHistory_Call
func (*Querier_CreateLoginHistory_Call) RunAndReturn ¶
func (_c *Querier_CreateLoginHistory_Call) RunAndReturn(run func(ctx context.Context, arg db.CreateLoginHistoryParams) (uuid.UUID, error)) *Querier_CreateLoginHistory_Call
type Querier_CreateNewPrediction_Call ¶
Querier_CreateNewPrediction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNewPrediction'
func (*Querier_CreateNewPrediction_Call) Return ¶
func (_c *Querier_CreateNewPrediction_Call) Return(prediction db.Prediction, err error) *Querier_CreateNewPrediction_Call
func (*Querier_CreateNewPrediction_Call) Run ¶
func (_c *Querier_CreateNewPrediction_Call) Run(run func(ctx context.Context, arg db.CreateNewPredictionParams)) *Querier_CreateNewPrediction_Call
func (*Querier_CreateNewPrediction_Call) RunAndReturn ¶
func (_c *Querier_CreateNewPrediction_Call) RunAndReturn(run func(ctx context.Context, arg db.CreateNewPredictionParams) (db.Prediction, error)) *Querier_CreateNewPrediction_Call
type Querier_CreateRefreshToken_Call ¶
Querier_CreateRefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRefreshToken'
func (*Querier_CreateRefreshToken_Call) Return ¶
func (_c *Querier_CreateRefreshToken_Call) Return(uUID uuid.UUID, err error) *Querier_CreateRefreshToken_Call
func (*Querier_CreateRefreshToken_Call) Run ¶
func (_c *Querier_CreateRefreshToken_Call) Run(run func(ctx context.Context, arg db.CreateRefreshTokenParams)) *Querier_CreateRefreshToken_Call
func (*Querier_CreateRefreshToken_Call) RunAndReturn ¶
func (_c *Querier_CreateRefreshToken_Call) RunAndReturn(run func(ctx context.Context, arg db.CreateRefreshTokenParams) (uuid.UUID, error)) *Querier_CreateRefreshToken_Call
type Querier_CreateUser_Call ¶
Querier_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*Querier_CreateUser_Call) Return ¶
func (_c *Querier_CreateUser_Call) Return(uUID uuid.UUID, err error) *Querier_CreateUser_Call
func (*Querier_CreateUser_Call) Run ¶
func (_c *Querier_CreateUser_Call) Run(run func(ctx context.Context, arg db.CreateUserParams)) *Querier_CreateUser_Call
func (*Querier_CreateUser_Call) RunAndReturn ¶
func (_c *Querier_CreateUser_Call) RunAndReturn(run func(ctx context.Context, arg db.CreateUserParams) (uuid.UUID, error)) *Querier_CreateUser_Call
type Querier_DeleteUser_Call ¶
Querier_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'
func (*Querier_DeleteUser_Call) Return ¶
func (_c *Querier_DeleteUser_Call) Return(err error) *Querier_DeleteUser_Call
func (*Querier_DeleteUser_Call) Run ¶
func (_c *Querier_DeleteUser_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Querier_DeleteUser_Call
func (*Querier_DeleteUser_Call) RunAndReturn ¶
func (_c *Querier_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) error) *Querier_DeleteUser_Call
type Querier_Expecter ¶
type Querier_Expecter struct {
// contains filtered or unexported fields
}
func (*Querier_Expecter) CompletePrediction ¶
func (_e *Querier_Expecter) CompletePrediction(ctx interface{}, arg interface{}) *Querier_CompletePrediction_Call
CompletePrediction is a helper method to define mock.On call
- ctx context.Context
- arg db.CompletePredictionParams
func (*Querier_Expecter) CreateLoginHistory ¶
func (_e *Querier_Expecter) CreateLoginHistory(ctx interface{}, arg interface{}) *Querier_CreateLoginHistory_Call
CreateLoginHistory is a helper method to define mock.On call
- ctx context.Context
- arg db.CreateLoginHistoryParams
func (*Querier_Expecter) CreateNewPrediction ¶
func (_e *Querier_Expecter) CreateNewPrediction(ctx interface{}, arg interface{}) *Querier_CreateNewPrediction_Call
CreateNewPrediction is a helper method to define mock.On call
- ctx context.Context
- arg db.CreateNewPredictionParams
func (*Querier_Expecter) CreateRefreshToken ¶
func (_e *Querier_Expecter) CreateRefreshToken(ctx interface{}, arg interface{}) *Querier_CreateRefreshToken_Call
CreateRefreshToken is a helper method to define mock.On call
- ctx context.Context
- arg db.CreateRefreshTokenParams
func (*Querier_Expecter) CreateUser ¶
func (_e *Querier_Expecter) CreateUser(ctx interface{}, arg interface{}) *Querier_CreateUser_Call
CreateUser is a helper method to define mock.On call
- ctx context.Context
- arg db.CreateUserParams
func (*Querier_Expecter) DeleteUser ¶
func (_e *Querier_Expecter) DeleteUser(ctx interface{}, id interface{}) *Querier_DeleteUser_Call
DeleteUser is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*Querier_Expecter) GetActiveTokensByUser ¶
func (_e *Querier_Expecter) GetActiveTokensByUser(ctx interface{}, userID interface{}) *Querier_GetActiveTokensByUser_Call
GetActiveTokensByUser is a helper method to define mock.On call
- ctx context.Context
- userID uuid.UUID
func (*Querier_Expecter) GetLoginHistoryByUser ¶
func (_e *Querier_Expecter) GetLoginHistoryByUser(ctx interface{}, arg interface{}) *Querier_GetLoginHistoryByUser_Call
GetLoginHistoryByUser is a helper method to define mock.On call
- ctx context.Context
- arg db.GetLoginHistoryByUserParams
func (*Querier_Expecter) GetPrediction ¶
func (_e *Querier_Expecter) GetPrediction(ctx interface{}, id interface{}) *Querier_GetPrediction_Call
GetPrediction is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*Querier_Expecter) GetPredictionsByUserID ¶
func (_e *Querier_Expecter) GetPredictionsByUserID(ctx interface{}, arg interface{}) *Querier_GetPredictionsByUserID_Call
GetPredictionsByUserID is a helper method to define mock.On call
- ctx context.Context
- arg db.GetPredictionsByUserIDParams
func (*Querier_Expecter) GetRefreshTokenByHash ¶
func (_e *Querier_Expecter) GetRefreshTokenByHash(ctx interface{}, tokenHash interface{}) *Querier_GetRefreshTokenByHash_Call
GetRefreshTokenByHash is a helper method to define mock.On call
- ctx context.Context
- tokenHash string
func (*Querier_Expecter) GetStatsByUserID ¶
func (_e *Querier_Expecter) GetStatsByUserID(ctx interface{}, userID interface{}) *Querier_GetStatsByUserID_Call
GetStatsByUserID is a helper method to define mock.On call
- ctx context.Context
- userID uuid.UUID
func (*Querier_Expecter) GetUserByID ¶
func (_e *Querier_Expecter) GetUserByID(ctx interface{}, id interface{}) *Querier_GetUserByID_Call
GetUserByID is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*Querier_Expecter) GetUserByLogin ¶
func (_e *Querier_Expecter) GetUserByLogin(ctx interface{}, login interface{}) *Querier_GetUserByLogin_Call
GetUserByLogin is a helper method to define mock.On call
- ctx context.Context
- login string
func (*Querier_Expecter) RevokeAllUserTokens ¶
func (_e *Querier_Expecter) RevokeAllUserTokens(ctx interface{}, userID interface{}) *Querier_RevokeAllUserTokens_Call
RevokeAllUserTokens is a helper method to define mock.On call
- ctx context.Context
- userID uuid.UUID
func (*Querier_Expecter) RevokeRefreshToken ¶
func (_e *Querier_Expecter) RevokeRefreshToken(ctx interface{}, tokenHash interface{}) *Querier_RevokeRefreshToken_Call
RevokeRefreshToken is a helper method to define mock.On call
- ctx context.Context
- tokenHash string
func (*Querier_Expecter) UpdateStats ¶
func (_e *Querier_Expecter) UpdateStats(ctx interface{}, arg interface{}) *Querier_UpdateStats_Call
UpdateStats is a helper method to define mock.On call
- ctx context.Context
- arg db.UpdateStatsParams
func (*Querier_Expecter) UpdateUser ¶
func (_e *Querier_Expecter) UpdateUser(ctx interface{}, arg interface{}) *Querier_UpdateUser_Call
UpdateUser is a helper method to define mock.On call
- ctx context.Context
- arg db.UpdateUserParams
func (*Querier_Expecter) UpdateUserAvatar ¶
func (_e *Querier_Expecter) UpdateUserAvatar(ctx interface{}, arg interface{}) *Querier_UpdateUserAvatar_Call
UpdateUserAvatar is a helper method to define mock.On call
- ctx context.Context
- arg db.UpdateUserAvatarParams
func (*Querier_Expecter) UpdateUserPassword ¶
func (_e *Querier_Expecter) UpdateUserPassword(ctx interface{}, arg interface{}) *Querier_UpdateUserPassword_Call
UpdateUserPassword is a helper method to define mock.On call
- ctx context.Context
- arg db.UpdateUserPasswordParams
type Querier_GetActiveTokensByUser_Call ¶
Querier_GetActiveTokensByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActiveTokensByUser'
func (*Querier_GetActiveTokensByUser_Call) Return ¶
func (_c *Querier_GetActiveTokensByUser_Call) Return(refreshTokens []db.RefreshToken, err error) *Querier_GetActiveTokensByUser_Call
func (*Querier_GetActiveTokensByUser_Call) Run ¶
func (_c *Querier_GetActiveTokensByUser_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *Querier_GetActiveTokensByUser_Call
func (*Querier_GetActiveTokensByUser_Call) RunAndReturn ¶
func (_c *Querier_GetActiveTokensByUser_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) ([]db.RefreshToken, error)) *Querier_GetActiveTokensByUser_Call
type Querier_GetLoginHistoryByUser_Call ¶
Querier_GetLoginHistoryByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLoginHistoryByUser'
func (*Querier_GetLoginHistoryByUser_Call) Return ¶
func (_c *Querier_GetLoginHistoryByUser_Call) Return(loginHistorys []db.LoginHistory, err error) *Querier_GetLoginHistoryByUser_Call
func (*Querier_GetLoginHistoryByUser_Call) Run ¶
func (_c *Querier_GetLoginHistoryByUser_Call) Run(run func(ctx context.Context, arg db.GetLoginHistoryByUserParams)) *Querier_GetLoginHistoryByUser_Call
func (*Querier_GetLoginHistoryByUser_Call) RunAndReturn ¶
func (_c *Querier_GetLoginHistoryByUser_Call) RunAndReturn(run func(ctx context.Context, arg db.GetLoginHistoryByUserParams) ([]db.LoginHistory, error)) *Querier_GetLoginHistoryByUser_Call
type Querier_GetPrediction_Call ¶
Querier_GetPrediction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrediction'
func (*Querier_GetPrediction_Call) Return ¶
func (_c *Querier_GetPrediction_Call) Return(prediction db.Prediction, err error) *Querier_GetPrediction_Call
func (*Querier_GetPrediction_Call) Run ¶
func (_c *Querier_GetPrediction_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Querier_GetPrediction_Call
func (*Querier_GetPrediction_Call) RunAndReturn ¶
func (_c *Querier_GetPrediction_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (db.Prediction, error)) *Querier_GetPrediction_Call
type Querier_GetPredictionsByUserID_Call ¶
Querier_GetPredictionsByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPredictionsByUserID'
func (*Querier_GetPredictionsByUserID_Call) Return ¶
func (_c *Querier_GetPredictionsByUserID_Call) Return(predictions []db.Prediction, err error) *Querier_GetPredictionsByUserID_Call
func (*Querier_GetPredictionsByUserID_Call) Run ¶
func (_c *Querier_GetPredictionsByUserID_Call) Run(run func(ctx context.Context, arg db.GetPredictionsByUserIDParams)) *Querier_GetPredictionsByUserID_Call
func (*Querier_GetPredictionsByUserID_Call) RunAndReturn ¶
func (_c *Querier_GetPredictionsByUserID_Call) RunAndReturn(run func(ctx context.Context, arg db.GetPredictionsByUserIDParams) ([]db.Prediction, error)) *Querier_GetPredictionsByUserID_Call
type Querier_GetRefreshTokenByHash_Call ¶
Querier_GetRefreshTokenByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRefreshTokenByHash'
func (*Querier_GetRefreshTokenByHash_Call) Return ¶
func (_c *Querier_GetRefreshTokenByHash_Call) Return(refreshToken db.RefreshToken, err error) *Querier_GetRefreshTokenByHash_Call
func (*Querier_GetRefreshTokenByHash_Call) Run ¶
func (_c *Querier_GetRefreshTokenByHash_Call) Run(run func(ctx context.Context, tokenHash string)) *Querier_GetRefreshTokenByHash_Call
func (*Querier_GetRefreshTokenByHash_Call) RunAndReturn ¶
func (_c *Querier_GetRefreshTokenByHash_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) (db.RefreshToken, error)) *Querier_GetRefreshTokenByHash_Call
type Querier_GetStatsByUserID_Call ¶
Querier_GetStatsByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatsByUserID'
func (*Querier_GetStatsByUserID_Call) Return ¶
func (_c *Querier_GetStatsByUserID_Call) Return(stat db.Stat, err error) *Querier_GetStatsByUserID_Call
func (*Querier_GetStatsByUserID_Call) Run ¶
func (_c *Querier_GetStatsByUserID_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *Querier_GetStatsByUserID_Call
func (*Querier_GetStatsByUserID_Call) RunAndReturn ¶
func (_c *Querier_GetStatsByUserID_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) (db.Stat, error)) *Querier_GetStatsByUserID_Call
type Querier_GetUserByID_Call ¶
Querier_GetUserByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByID'
func (*Querier_GetUserByID_Call) Return ¶
func (_c *Querier_GetUserByID_Call) Return(user db.User, err error) *Querier_GetUserByID_Call
func (*Querier_GetUserByID_Call) Run ¶
func (_c *Querier_GetUserByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Querier_GetUserByID_Call
func (*Querier_GetUserByID_Call) RunAndReturn ¶
func (_c *Querier_GetUserByID_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (db.User, error)) *Querier_GetUserByID_Call
type Querier_GetUserByLogin_Call ¶
Querier_GetUserByLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByLogin'
func (*Querier_GetUserByLogin_Call) Return ¶
func (_c *Querier_GetUserByLogin_Call) Return(user db.User, err error) *Querier_GetUserByLogin_Call
func (*Querier_GetUserByLogin_Call) Run ¶
func (_c *Querier_GetUserByLogin_Call) Run(run func(ctx context.Context, login string)) *Querier_GetUserByLogin_Call
func (*Querier_GetUserByLogin_Call) RunAndReturn ¶
func (_c *Querier_GetUserByLogin_Call) RunAndReturn(run func(ctx context.Context, login string) (db.User, error)) *Querier_GetUserByLogin_Call
type Querier_RevokeAllUserTokens_Call ¶
Querier_RevokeAllUserTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeAllUserTokens'
func (*Querier_RevokeAllUserTokens_Call) Return ¶
func (_c *Querier_RevokeAllUserTokens_Call) Return(err error) *Querier_RevokeAllUserTokens_Call
func (*Querier_RevokeAllUserTokens_Call) Run ¶
func (_c *Querier_RevokeAllUserTokens_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *Querier_RevokeAllUserTokens_Call
func (*Querier_RevokeAllUserTokens_Call) RunAndReturn ¶
func (_c *Querier_RevokeAllUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) error) *Querier_RevokeAllUserTokens_Call
type Querier_RevokeRefreshToken_Call ¶
Querier_RevokeRefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeRefreshToken'
func (*Querier_RevokeRefreshToken_Call) Return ¶
func (_c *Querier_RevokeRefreshToken_Call) Return(err error) *Querier_RevokeRefreshToken_Call
func (*Querier_RevokeRefreshToken_Call) Run ¶
func (_c *Querier_RevokeRefreshToken_Call) Run(run func(ctx context.Context, tokenHash string)) *Querier_RevokeRefreshToken_Call
func (*Querier_RevokeRefreshToken_Call) RunAndReturn ¶
func (_c *Querier_RevokeRefreshToken_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) error) *Querier_RevokeRefreshToken_Call
type Querier_UpdateStats_Call ¶
Querier_UpdateStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStats'
func (*Querier_UpdateStats_Call) Return ¶
func (_c *Querier_UpdateStats_Call) Return(err error) *Querier_UpdateStats_Call
func (*Querier_UpdateStats_Call) Run ¶
func (_c *Querier_UpdateStats_Call) Run(run func(ctx context.Context, arg db.UpdateStatsParams)) *Querier_UpdateStats_Call
func (*Querier_UpdateStats_Call) RunAndReturn ¶
func (_c *Querier_UpdateStats_Call) RunAndReturn(run func(ctx context.Context, arg db.UpdateStatsParams) error) *Querier_UpdateStats_Call
type Querier_UpdateUserAvatar_Call ¶
Querier_UpdateUserAvatar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUserAvatar'
func (*Querier_UpdateUserAvatar_Call) Return ¶
func (_c *Querier_UpdateUserAvatar_Call) Return(err error) *Querier_UpdateUserAvatar_Call
func (*Querier_UpdateUserAvatar_Call) Run ¶
func (_c *Querier_UpdateUserAvatar_Call) Run(run func(ctx context.Context, arg db.UpdateUserAvatarParams)) *Querier_UpdateUserAvatar_Call
func (*Querier_UpdateUserAvatar_Call) RunAndReturn ¶
func (_c *Querier_UpdateUserAvatar_Call) RunAndReturn(run func(ctx context.Context, arg db.UpdateUserAvatarParams) error) *Querier_UpdateUserAvatar_Call
type Querier_UpdateUserPassword_Call ¶
Querier_UpdateUserPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUserPassword'
func (*Querier_UpdateUserPassword_Call) Return ¶
func (_c *Querier_UpdateUserPassword_Call) Return(err error) *Querier_UpdateUserPassword_Call
func (*Querier_UpdateUserPassword_Call) Run ¶
func (_c *Querier_UpdateUserPassword_Call) Run(run func(ctx context.Context, arg db.UpdateUserPasswordParams)) *Querier_UpdateUserPassword_Call
func (*Querier_UpdateUserPassword_Call) RunAndReturn ¶
func (_c *Querier_UpdateUserPassword_Call) RunAndReturn(run func(ctx context.Context, arg db.UpdateUserPasswordParams) error) *Querier_UpdateUserPassword_Call
type Querier_UpdateUser_Call ¶
Querier_UpdateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUser'
func (*Querier_UpdateUser_Call) Return ¶
func (_c *Querier_UpdateUser_Call) Return(err error) *Querier_UpdateUser_Call
func (*Querier_UpdateUser_Call) Run ¶
func (_c *Querier_UpdateUser_Call) Run(run func(ctx context.Context, arg db.UpdateUserParams)) *Querier_UpdateUser_Call
func (*Querier_UpdateUser_Call) RunAndReturn ¶
func (_c *Querier_UpdateUser_Call) RunAndReturn(run func(ctx context.Context, arg db.UpdateUserParams) error) *Querier_UpdateUser_Call