Documentation
¶
Index ¶
- type MockAuthHandler
- func (_mock *MockAuthHandler) CreateAccount(c echo.Context) error
- func (_mock *MockAuthHandler) DeleteUser(c echo.Context) error
- func (_m *MockAuthHandler) EXPECT() *MockAuthHandler_Expecter
- func (_mock *MockAuthHandler) Login(c echo.Context) error
- func (_mock *MockAuthHandler) Logout(c echo.Context) error
- func (_mock *MockAuthHandler) Me(c echo.Context) error
- func (_mock *MockAuthHandler) ReactivateAccount(c echo.Context) error
- func (_mock *MockAuthHandler) UpdatePassword(c echo.Context) error
- func (_mock *MockAuthHandler) UpdateUser(c echo.Context) error
- type MockAuthHandler_CreateAccount_Call
- func (_c *MockAuthHandler_CreateAccount_Call) Return(err error) *MockAuthHandler_CreateAccount_Call
- func (_c *MockAuthHandler_CreateAccount_Call) Run(run func(c echo.Context)) *MockAuthHandler_CreateAccount_Call
- func (_c *MockAuthHandler_CreateAccount_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_CreateAccount_Call
- type MockAuthHandler_DeleteUser_Call
- func (_c *MockAuthHandler_DeleteUser_Call) Return(err error) *MockAuthHandler_DeleteUser_Call
- func (_c *MockAuthHandler_DeleteUser_Call) Run(run func(c echo.Context)) *MockAuthHandler_DeleteUser_Call
- func (_c *MockAuthHandler_DeleteUser_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_DeleteUser_Call
- type MockAuthHandler_Expecter
- func (_e *MockAuthHandler_Expecter) CreateAccount(c interface{}) *MockAuthHandler_CreateAccount_Call
- func (_e *MockAuthHandler_Expecter) DeleteUser(c interface{}) *MockAuthHandler_DeleteUser_Call
- func (_e *MockAuthHandler_Expecter) Login(c interface{}) *MockAuthHandler_Login_Call
- func (_e *MockAuthHandler_Expecter) Logout(c interface{}) *MockAuthHandler_Logout_Call
- func (_e *MockAuthHandler_Expecter) Me(c interface{}) *MockAuthHandler_Me_Call
- func (_e *MockAuthHandler_Expecter) ReactivateAccount(c interface{}) *MockAuthHandler_ReactivateAccount_Call
- func (_e *MockAuthHandler_Expecter) UpdatePassword(c interface{}) *MockAuthHandler_UpdatePassword_Call
- func (_e *MockAuthHandler_Expecter) UpdateUser(c interface{}) *MockAuthHandler_UpdateUser_Call
- type MockAuthHandler_Login_Call
- type MockAuthHandler_Logout_Call
- type MockAuthHandler_Me_Call
- type MockAuthHandler_ReactivateAccount_Call
- func (_c *MockAuthHandler_ReactivateAccount_Call) Return(err error) *MockAuthHandler_ReactivateAccount_Call
- func (_c *MockAuthHandler_ReactivateAccount_Call) Run(run func(c echo.Context)) *MockAuthHandler_ReactivateAccount_Call
- func (_c *MockAuthHandler_ReactivateAccount_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_ReactivateAccount_Call
- type MockAuthHandler_UpdatePassword_Call
- func (_c *MockAuthHandler_UpdatePassword_Call) Return(err error) *MockAuthHandler_UpdatePassword_Call
- func (_c *MockAuthHandler_UpdatePassword_Call) Run(run func(c echo.Context)) *MockAuthHandler_UpdatePassword_Call
- func (_c *MockAuthHandler_UpdatePassword_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_UpdatePassword_Call
- type MockAuthHandler_UpdateUser_Call
- func (_c *MockAuthHandler_UpdateUser_Call) Return(err error) *MockAuthHandler_UpdateUser_Call
- func (_c *MockAuthHandler_UpdateUser_Call) Run(run func(c echo.Context)) *MockAuthHandler_UpdateUser_Call
- func (_c *MockAuthHandler_UpdateUser_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_UpdateUser_Call
- type MockAuthRepository
- func (_mock *MockAuthRepository) CreateUser(ctx context.Context, user *domain.User) error
- func (_mock *MockAuthRepository) DeleteDeactivatedUsers(ctx context.Context) (int64, error)
- func (_mock *MockAuthRepository) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (_m *MockAuthRepository) EXPECT() *MockAuthRepository_Expecter
- func (_mock *MockAuthRepository) FindUserByEmail(ctx context.Context, email string) (*domain.User, error)
- func (_mock *MockAuthRepository) FindUserByID(ctx context.Context, id uuid.UUID) (*domain.User, error)
- func (_mock *MockAuthRepository) UpdateUser(ctx context.Context, user *domain.User) error
- type MockAuthRepository_CreateUser_Call
- func (_c *MockAuthRepository_CreateUser_Call) Return(err error) *MockAuthRepository_CreateUser_Call
- func (_c *MockAuthRepository_CreateUser_Call) Run(run func(ctx context.Context, user *domain.User)) *MockAuthRepository_CreateUser_Call
- func (_c *MockAuthRepository_CreateUser_Call) RunAndReturn(run func(ctx context.Context, user *domain.User) error) *MockAuthRepository_CreateUser_Call
- type MockAuthRepository_DeleteDeactivatedUsers_Call
- func (_c *MockAuthRepository_DeleteDeactivatedUsers_Call) Return(n int64, err error) *MockAuthRepository_DeleteDeactivatedUsers_Call
- func (_c *MockAuthRepository_DeleteDeactivatedUsers_Call) Run(run func(ctx context.Context)) *MockAuthRepository_DeleteDeactivatedUsers_Call
- func (_c *MockAuthRepository_DeleteDeactivatedUsers_Call) RunAndReturn(run func(ctx context.Context) (int64, error)) *MockAuthRepository_DeleteDeactivatedUsers_Call
- type MockAuthRepository_DeleteUser_Call
- func (_c *MockAuthRepository_DeleteUser_Call) Return(err error) *MockAuthRepository_DeleteUser_Call
- func (_c *MockAuthRepository_DeleteUser_Call) Run(run func(ctx context.Context, id uuid.UUID)) *MockAuthRepository_DeleteUser_Call
- func (_c *MockAuthRepository_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) error) *MockAuthRepository_DeleteUser_Call
- type MockAuthRepository_Expecter
- func (_e *MockAuthRepository_Expecter) CreateUser(ctx interface{}, user interface{}) *MockAuthRepository_CreateUser_Call
- func (_e *MockAuthRepository_Expecter) DeleteDeactivatedUsers(ctx interface{}) *MockAuthRepository_DeleteDeactivatedUsers_Call
- func (_e *MockAuthRepository_Expecter) DeleteUser(ctx interface{}, id interface{}) *MockAuthRepository_DeleteUser_Call
- func (_e *MockAuthRepository_Expecter) FindUserByEmail(ctx interface{}, email interface{}) *MockAuthRepository_FindUserByEmail_Call
- func (_e *MockAuthRepository_Expecter) FindUserByID(ctx interface{}, id interface{}) *MockAuthRepository_FindUserByID_Call
- func (_e *MockAuthRepository_Expecter) UpdateUser(ctx interface{}, user interface{}) *MockAuthRepository_UpdateUser_Call
- type MockAuthRepository_FindUserByEmail_Call
- func (_c *MockAuthRepository_FindUserByEmail_Call) Return(user *domain.User, err error) *MockAuthRepository_FindUserByEmail_Call
- func (_c *MockAuthRepository_FindUserByEmail_Call) Run(run func(ctx context.Context, email string)) *MockAuthRepository_FindUserByEmail_Call
- func (_c *MockAuthRepository_FindUserByEmail_Call) RunAndReturn(run func(ctx context.Context, email string) (*domain.User, error)) *MockAuthRepository_FindUserByEmail_Call
- type MockAuthRepository_FindUserByID_Call
- func (_c *MockAuthRepository_FindUserByID_Call) Return(user *domain.User, err error) *MockAuthRepository_FindUserByID_Call
- func (_c *MockAuthRepository_FindUserByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *MockAuthRepository_FindUserByID_Call
- func (_c *MockAuthRepository_FindUserByID_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (*domain.User, error)) *MockAuthRepository_FindUserByID_Call
- type MockAuthRepository_UpdateUser_Call
- func (_c *MockAuthRepository_UpdateUser_Call) Return(err error) *MockAuthRepository_UpdateUser_Call
- func (_c *MockAuthRepository_UpdateUser_Call) Run(run func(ctx context.Context, user *domain.User)) *MockAuthRepository_UpdateUser_Call
- func (_c *MockAuthRepository_UpdateUser_Call) RunAndReturn(run func(ctx context.Context, user *domain.User) error) *MockAuthRepository_UpdateUser_Call
- type MockAuthService
- func (_mock *MockAuthService) CreateAccount(ctx context.Context, req domain.CreateAccountRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)
- func (_mock *MockAuthService) DeleteUser(ctx context.Context, userID string) error
- func (_m *MockAuthService) EXPECT() *MockAuthService_Expecter
- func (_mock *MockAuthService) Login(ctx context.Context, req domain.LoginRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)
- func (_mock *MockAuthService) Logout(ctx context.Context, sessionID string) error
- func (_mock *MockAuthService) ReactivateAccount(ctx context.Context, req domain.LoginRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)
- func (_mock *MockAuthService) UpdatePassword(ctx context.Context, userID string, req domain.UpdatePasswordRequest) error
- func (_mock *MockAuthService) UpdateUser(ctx context.Context, userID string, req domain.UpdateUserRequest) (*domain.UserResponse, error)
- type MockAuthService_CreateAccount_Call
- func (_c *MockAuthService_CreateAccount_Call) Return(authResponse *domain.AuthResponse, err error) *MockAuthService_CreateAccount_Call
- func (_c *MockAuthService_CreateAccount_Call) Run(...) *MockAuthService_CreateAccount_Call
- func (_c *MockAuthService_CreateAccount_Call) RunAndReturn(...) *MockAuthService_CreateAccount_Call
- type MockAuthService_DeleteUser_Call
- func (_c *MockAuthService_DeleteUser_Call) Return(err error) *MockAuthService_DeleteUser_Call
- func (_c *MockAuthService_DeleteUser_Call) Run(run func(ctx context.Context, userID string)) *MockAuthService_DeleteUser_Call
- func (_c *MockAuthService_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, userID string) error) *MockAuthService_DeleteUser_Call
- type MockAuthService_Expecter
- func (_e *MockAuthService_Expecter) CreateAccount(ctx interface{}, req interface{}, device interface{}) *MockAuthService_CreateAccount_Call
- func (_e *MockAuthService_Expecter) DeleteUser(ctx interface{}, userID interface{}) *MockAuthService_DeleteUser_Call
- func (_e *MockAuthService_Expecter) Login(ctx interface{}, req interface{}, device interface{}) *MockAuthService_Login_Call
- func (_e *MockAuthService_Expecter) Logout(ctx interface{}, sessionID interface{}) *MockAuthService_Logout_Call
- func (_e *MockAuthService_Expecter) ReactivateAccount(ctx interface{}, req interface{}, device interface{}) *MockAuthService_ReactivateAccount_Call
- func (_e *MockAuthService_Expecter) UpdatePassword(ctx interface{}, userID interface{}, req interface{}) *MockAuthService_UpdatePassword_Call
- func (_e *MockAuthService_Expecter) UpdateUser(ctx interface{}, userID interface{}, req interface{}) *MockAuthService_UpdateUser_Call
- type MockAuthService_Login_Call
- type MockAuthService_Logout_Call
- func (_c *MockAuthService_Logout_Call) Return(err error) *MockAuthService_Logout_Call
- func (_c *MockAuthService_Logout_Call) Run(run func(ctx context.Context, sessionID string)) *MockAuthService_Logout_Call
- func (_c *MockAuthService_Logout_Call) RunAndReturn(run func(ctx context.Context, sessionID string) error) *MockAuthService_Logout_Call
- type MockAuthService_ReactivateAccount_Call
- func (_c *MockAuthService_ReactivateAccount_Call) Return(authResponse *domain.AuthResponse, err error) *MockAuthService_ReactivateAccount_Call
- func (_c *MockAuthService_ReactivateAccount_Call) Run(...) *MockAuthService_ReactivateAccount_Call
- func (_c *MockAuthService_ReactivateAccount_Call) RunAndReturn(...) *MockAuthService_ReactivateAccount_Call
- type MockAuthService_UpdatePassword_Call
- func (_c *MockAuthService_UpdatePassword_Call) Return(err error) *MockAuthService_UpdatePassword_Call
- func (_c *MockAuthService_UpdatePassword_Call) Run(run func(ctx context.Context, userID string, req domain.UpdatePasswordRequest)) *MockAuthService_UpdatePassword_Call
- func (_c *MockAuthService_UpdatePassword_Call) RunAndReturn(...) *MockAuthService_UpdatePassword_Call
- type MockAuthService_UpdateUser_Call
- func (_c *MockAuthService_UpdateUser_Call) Return(userResponse *domain.UserResponse, err error) *MockAuthService_UpdateUser_Call
- func (_c *MockAuthService_UpdateUser_Call) Run(run func(ctx context.Context, userID string, req domain.UpdateUserRequest)) *MockAuthService_UpdateUser_Call
- func (_c *MockAuthService_UpdateUser_Call) RunAndReturn(...) *MockAuthService_UpdateUser_Call
- type MockDeviceRepository
- func (_mock *MockDeviceRepository) CreateDevice(ctx context.Context, device *domain.Device) error
- func (_mock *MockDeviceRepository) DeleteDeviceBySessionID(ctx context.Context, sessionID uuid.UUID) error
- func (_mock *MockDeviceRepository) DeleteDevicesByUserID(ctx context.Context, userID uuid.UUID) error
- func (_mock *MockDeviceRepository) DeleteExpiredDevices(ctx context.Context) (int64, error)
- func (_m *MockDeviceRepository) EXPECT() *MockDeviceRepository_Expecter
- func (_mock *MockDeviceRepository) FindDeviceBySessionID(ctx context.Context, sessionID uuid.UUID) (*domain.Device, error)
- type MockDeviceRepository_CreateDevice_Call
- func (_c *MockDeviceRepository_CreateDevice_Call) Return(err error) *MockDeviceRepository_CreateDevice_Call
- func (_c *MockDeviceRepository_CreateDevice_Call) Run(run func(ctx context.Context, device *domain.Device)) *MockDeviceRepository_CreateDevice_Call
- func (_c *MockDeviceRepository_CreateDevice_Call) RunAndReturn(run func(ctx context.Context, device *domain.Device) error) *MockDeviceRepository_CreateDevice_Call
- type MockDeviceRepository_DeleteDeviceBySessionID_Call
- func (_c *MockDeviceRepository_DeleteDeviceBySessionID_Call) Return(err error) *MockDeviceRepository_DeleteDeviceBySessionID_Call
- func (_c *MockDeviceRepository_DeleteDeviceBySessionID_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *MockDeviceRepository_DeleteDeviceBySessionID_Call
- func (_c *MockDeviceRepository_DeleteDeviceBySessionID_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID) error) *MockDeviceRepository_DeleteDeviceBySessionID_Call
- type MockDeviceRepository_DeleteDevicesByUserID_Call
- func (_c *MockDeviceRepository_DeleteDevicesByUserID_Call) Return(err error) *MockDeviceRepository_DeleteDevicesByUserID_Call
- func (_c *MockDeviceRepository_DeleteDevicesByUserID_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *MockDeviceRepository_DeleteDevicesByUserID_Call
- func (_c *MockDeviceRepository_DeleteDevicesByUserID_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) error) *MockDeviceRepository_DeleteDevicesByUserID_Call
- type MockDeviceRepository_DeleteExpiredDevices_Call
- func (_c *MockDeviceRepository_DeleteExpiredDevices_Call) Return(n int64, err error) *MockDeviceRepository_DeleteExpiredDevices_Call
- func (_c *MockDeviceRepository_DeleteExpiredDevices_Call) Run(run func(ctx context.Context)) *MockDeviceRepository_DeleteExpiredDevices_Call
- func (_c *MockDeviceRepository_DeleteExpiredDevices_Call) RunAndReturn(run func(ctx context.Context) (int64, error)) *MockDeviceRepository_DeleteExpiredDevices_Call
- type MockDeviceRepository_Expecter
- func (_e *MockDeviceRepository_Expecter) CreateDevice(ctx interface{}, device interface{}) *MockDeviceRepository_CreateDevice_Call
- func (_e *MockDeviceRepository_Expecter) DeleteDeviceBySessionID(ctx interface{}, sessionID interface{}) *MockDeviceRepository_DeleteDeviceBySessionID_Call
- func (_e *MockDeviceRepository_Expecter) DeleteDevicesByUserID(ctx interface{}, userID interface{}) *MockDeviceRepository_DeleteDevicesByUserID_Call
- func (_e *MockDeviceRepository_Expecter) DeleteExpiredDevices(ctx interface{}) *MockDeviceRepository_DeleteExpiredDevices_Call
- func (_e *MockDeviceRepository_Expecter) FindDeviceBySessionID(ctx interface{}, sessionID interface{}) *MockDeviceRepository_FindDeviceBySessionID_Call
- type MockDeviceRepository_FindDeviceBySessionID_Call
- func (_c *MockDeviceRepository_FindDeviceBySessionID_Call) Return(device *domain.Device, err error) *MockDeviceRepository_FindDeviceBySessionID_Call
- func (_c *MockDeviceRepository_FindDeviceBySessionID_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *MockDeviceRepository_FindDeviceBySessionID_Call
- func (_c *MockDeviceRepository_FindDeviceBySessionID_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID) (*domain.Device, error)) *MockDeviceRepository_FindDeviceBySessionID_Call
- type MockHealthCheckHandler
- type MockHealthCheckHandler_Check_Call
- func (_c *MockHealthCheckHandler_Check_Call) Return(err error) *MockHealthCheckHandler_Check_Call
- func (_c *MockHealthCheckHandler_Check_Call) Run(run func(ctx echo.Context)) *MockHealthCheckHandler_Check_Call
- func (_c *MockHealthCheckHandler_Check_Call) RunAndReturn(run func(ctx echo.Context) error) *MockHealthCheckHandler_Check_Call
- type MockHealthCheckHandler_Expecter
- type MockHealthCheckerService
- type MockHealthCheckerService_Check_Call
- func (_c *MockHealthCheckerService_Check_Call) Return(healthCheck domain.HealthCheck, errs []error) *MockHealthCheckerService_Check_Call
- func (_c *MockHealthCheckerService_Check_Call) Run(run func()) *MockHealthCheckerService_Check_Call
- func (_c *MockHealthCheckerService_Check_Call) RunAndReturn(run func() (domain.HealthCheck, []error)) *MockHealthCheckerService_Check_Call
- type MockHealthCheckerService_Expecter
- type MockPasswordHasher
- type MockPasswordHasher_Check_Call
- func (_c *MockPasswordHasher_Check_Call) Return(err error) *MockPasswordHasher_Check_Call
- func (_c *MockPasswordHasher_Check_Call) Run(run func(password string, hash string)) *MockPasswordHasher_Check_Call
- func (_c *MockPasswordHasher_Check_Call) RunAndReturn(run func(password string, hash string) error) *MockPasswordHasher_Check_Call
- type MockPasswordHasher_Expecter
- type MockPasswordHasher_Hash_Call
- func (_c *MockPasswordHasher_Hash_Call) Return(s string, err error) *MockPasswordHasher_Hash_Call
- func (_c *MockPasswordHasher_Hash_Call) Run(run func(password string)) *MockPasswordHasher_Hash_Call
- func (_c *MockPasswordHasher_Hash_Call) RunAndReturn(run func(password string) (string, error)) *MockPasswordHasher_Hash_Call
- type MockQuerier
- type MockQuerier_Expecter
- type MockQuerier_FindByEmail_Call
- func (_c *MockQuerier_FindByEmail_Call) Return(err error) *MockQuerier_FindByEmail_Call
- func (_c *MockQuerier_FindByEmail_Call) Run(run func(ctx context.Context, table string, email string, dest any)) *MockQuerier_FindByEmail_Call
- func (_c *MockQuerier_FindByEmail_Call) RunAndReturn(run func(ctx context.Context, table string, email string, dest any) error) *MockQuerier_FindByEmail_Call
- type MockQuerier_FindByID_Call
- func (_c *MockQuerier_FindByID_Call) Return(err error) *MockQuerier_FindByID_Call
- func (_c *MockQuerier_FindByID_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockQuerier_FindByID_Call
- func (_c *MockQuerier_FindByID_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockQuerier_FindByID_Call
- type MockReader
- type MockReader_Expecter
- type MockReader_GetDB_Call
- type MockSessionRepository
- func (_mock *MockSessionRepository) CreateSession(ctx context.Context, session *domain.Session) error
- func (_mock *MockSessionRepository) DeleteExpiredSessions(ctx context.Context) (int64, error)
- func (_mock *MockSessionRepository) DeleteSession(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)
- func (_mock *MockSessionRepository) DeleteSessionsByUserID(ctx context.Context, userID uuid.UUID) error
- func (_m *MockSessionRepository) EXPECT() *MockSessionRepository_Expecter
- func (_mock *MockSessionRepository) FindSessionByID(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)
- func (_mock *MockSessionRepository) UpdateSessionExpiry(ctx context.Context, sessionID uuid.UUID, expiresAt time.Time) error
- type MockSessionRepository_CreateSession_Call
- func (_c *MockSessionRepository_CreateSession_Call) Return(err error) *MockSessionRepository_CreateSession_Call
- func (_c *MockSessionRepository_CreateSession_Call) Run(run func(ctx context.Context, session *domain.Session)) *MockSessionRepository_CreateSession_Call
- func (_c *MockSessionRepository_CreateSession_Call) RunAndReturn(run func(ctx context.Context, session *domain.Session) error) *MockSessionRepository_CreateSession_Call
- type MockSessionRepository_DeleteExpiredSessions_Call
- func (_c *MockSessionRepository_DeleteExpiredSessions_Call) Return(n int64, err error) *MockSessionRepository_DeleteExpiredSessions_Call
- func (_c *MockSessionRepository_DeleteExpiredSessions_Call) Run(run func(ctx context.Context)) *MockSessionRepository_DeleteExpiredSessions_Call
- func (_c *MockSessionRepository_DeleteExpiredSessions_Call) RunAndReturn(run func(ctx context.Context) (int64, error)) *MockSessionRepository_DeleteExpiredSessions_Call
- type MockSessionRepository_DeleteSession_Call
- func (_c *MockSessionRepository_DeleteSession_Call) Return(session *domain.Session, err error) *MockSessionRepository_DeleteSession_Call
- func (_c *MockSessionRepository_DeleteSession_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *MockSessionRepository_DeleteSession_Call
- func (_c *MockSessionRepository_DeleteSession_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)) *MockSessionRepository_DeleteSession_Call
- type MockSessionRepository_DeleteSessionsByUserID_Call
- func (_c *MockSessionRepository_DeleteSessionsByUserID_Call) Return(err error) *MockSessionRepository_DeleteSessionsByUserID_Call
- func (_c *MockSessionRepository_DeleteSessionsByUserID_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *MockSessionRepository_DeleteSessionsByUserID_Call
- func (_c *MockSessionRepository_DeleteSessionsByUserID_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) error) *MockSessionRepository_DeleteSessionsByUserID_Call
- type MockSessionRepository_Expecter
- func (_e *MockSessionRepository_Expecter) CreateSession(ctx interface{}, session interface{}) *MockSessionRepository_CreateSession_Call
- func (_e *MockSessionRepository_Expecter) DeleteExpiredSessions(ctx interface{}) *MockSessionRepository_DeleteExpiredSessions_Call
- func (_e *MockSessionRepository_Expecter) DeleteSession(ctx interface{}, sessionID interface{}) *MockSessionRepository_DeleteSession_Call
- func (_e *MockSessionRepository_Expecter) DeleteSessionsByUserID(ctx interface{}, userID interface{}) *MockSessionRepository_DeleteSessionsByUserID_Call
- func (_e *MockSessionRepository_Expecter) FindSessionByID(ctx interface{}, sessionID interface{}) *MockSessionRepository_FindSessionByID_Call
- func (_e *MockSessionRepository_Expecter) UpdateSessionExpiry(ctx interface{}, sessionID interface{}, expiresAt interface{}) *MockSessionRepository_UpdateSessionExpiry_Call
- type MockSessionRepository_FindSessionByID_Call
- func (_c *MockSessionRepository_FindSessionByID_Call) Return(session *domain.Session, err error) *MockSessionRepository_FindSessionByID_Call
- func (_c *MockSessionRepository_FindSessionByID_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *MockSessionRepository_FindSessionByID_Call
- func (_c *MockSessionRepository_FindSessionByID_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)) *MockSessionRepository_FindSessionByID_Call
- type MockSessionRepository_UpdateSessionExpiry_Call
- func (_c *MockSessionRepository_UpdateSessionExpiry_Call) Return(err error) *MockSessionRepository_UpdateSessionExpiry_Call
- func (_c *MockSessionRepository_UpdateSessionExpiry_Call) Run(run func(ctx context.Context, sessionID uuid.UUID, expiresAt time.Time)) *MockSessionRepository_UpdateSessionExpiry_Call
- func (_c *MockSessionRepository_UpdateSessionExpiry_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID, expiresAt time.Time) error) *MockSessionRepository_UpdateSessionExpiry_Call
- type MockStorage
- func (_m *MockStorage) EXPECT() *MockStorage_Expecter
- func (_mock *MockStorage) FindByEmail(ctx context.Context, table string, email string, dest any) error
- func (_mock *MockStorage) FindByID(ctx context.Context, table string, id any, dest any) error
- func (_mock *MockStorage) FindOneAndDelete(ctx context.Context, table string, id any, dest any) error
- func (_mock *MockStorage) GetDB() any
- func (_mock *MockStorage) Insert(ctx context.Context, table string, data any) error
- func (_mock *MockStorage) Ping(ctx context.Context) error
- func (_mock *MockStorage) Update(ctx context.Context, table string, data any) error
- type MockStorage_Expecter
- func (_e *MockStorage_Expecter) FindByEmail(ctx interface{}, table interface{}, email interface{}, dest interface{}) *MockStorage_FindByEmail_Call
- func (_e *MockStorage_Expecter) FindByID(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockStorage_FindByID_Call
- func (_e *MockStorage_Expecter) FindOneAndDelete(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockStorage_FindOneAndDelete_Call
- func (_e *MockStorage_Expecter) GetDB() *MockStorage_GetDB_Call
- func (_e *MockStorage_Expecter) Insert(ctx interface{}, table interface{}, data interface{}) *MockStorage_Insert_Call
- func (_e *MockStorage_Expecter) Ping(ctx interface{}) *MockStorage_Ping_Call
- func (_e *MockStorage_Expecter) Update(ctx interface{}, table interface{}, data interface{}) *MockStorage_Update_Call
- type MockStorage_FindByEmail_Call
- func (_c *MockStorage_FindByEmail_Call) Return(err error) *MockStorage_FindByEmail_Call
- func (_c *MockStorage_FindByEmail_Call) Run(run func(ctx context.Context, table string, email string, dest any)) *MockStorage_FindByEmail_Call
- func (_c *MockStorage_FindByEmail_Call) RunAndReturn(run func(ctx context.Context, table string, email string, dest any) error) *MockStorage_FindByEmail_Call
- type MockStorage_FindByID_Call
- func (_c *MockStorage_FindByID_Call) Return(err error) *MockStorage_FindByID_Call
- func (_c *MockStorage_FindByID_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockStorage_FindByID_Call
- func (_c *MockStorage_FindByID_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockStorage_FindByID_Call
- type MockStorage_FindOneAndDelete_Call
- func (_c *MockStorage_FindOneAndDelete_Call) Return(err error) *MockStorage_FindOneAndDelete_Call
- func (_c *MockStorage_FindOneAndDelete_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockStorage_FindOneAndDelete_Call
- func (_c *MockStorage_FindOneAndDelete_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockStorage_FindOneAndDelete_Call
- type MockStorage_GetDB_Call
- type MockStorage_Insert_Call
- func (_c *MockStorage_Insert_Call) Return(err error) *MockStorage_Insert_Call
- func (_c *MockStorage_Insert_Call) Run(run func(ctx context.Context, table string, data any)) *MockStorage_Insert_Call
- func (_c *MockStorage_Insert_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockStorage_Insert_Call
- type MockStorage_Ping_Call
- type MockStorage_Update_Call
- func (_c *MockStorage_Update_Call) Return(err error) *MockStorage_Update_Call
- func (_c *MockStorage_Update_Call) Run(run func(ctx context.Context, table string, data any)) *MockStorage_Update_Call
- func (_c *MockStorage_Update_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockStorage_Update_Call
- type MockTokenProvider
- func (_m *MockTokenProvider) EXPECT() *MockTokenProvider_Expecter
- func (_mock *MockTokenProvider) GenerateAccessToken(sessionID string) (string, error)
- func (_mock *MockTokenProvider) GenerateRefreshToken(userID string, sessionID string) (string, error)
- func (_mock *MockTokenProvider) ParseAccessToken(tokenString string) (*domain.AccessTokenClaims, error)
- func (_mock *MockTokenProvider) ParseRefreshToken(tokenString string) (*domain.RefreshTokenClaims, error)
- type MockTokenProvider_Expecter
- func (_e *MockTokenProvider_Expecter) GenerateAccessToken(sessionID interface{}) *MockTokenProvider_GenerateAccessToken_Call
- func (_e *MockTokenProvider_Expecter) GenerateRefreshToken(userID interface{}, sessionID interface{}) *MockTokenProvider_GenerateRefreshToken_Call
- func (_e *MockTokenProvider_Expecter) ParseAccessToken(tokenString interface{}) *MockTokenProvider_ParseAccessToken_Call
- func (_e *MockTokenProvider_Expecter) ParseRefreshToken(tokenString interface{}) *MockTokenProvider_ParseRefreshToken_Call
- type MockTokenProvider_GenerateAccessToken_Call
- func (_c *MockTokenProvider_GenerateAccessToken_Call) Return(s string, err error) *MockTokenProvider_GenerateAccessToken_Call
- func (_c *MockTokenProvider_GenerateAccessToken_Call) Run(run func(sessionID string)) *MockTokenProvider_GenerateAccessToken_Call
- func (_c *MockTokenProvider_GenerateAccessToken_Call) RunAndReturn(run func(sessionID string) (string, error)) *MockTokenProvider_GenerateAccessToken_Call
- type MockTokenProvider_GenerateRefreshToken_Call
- func (_c *MockTokenProvider_GenerateRefreshToken_Call) Return(s string, err error) *MockTokenProvider_GenerateRefreshToken_Call
- func (_c *MockTokenProvider_GenerateRefreshToken_Call) Run(run func(userID string, sessionID string)) *MockTokenProvider_GenerateRefreshToken_Call
- func (_c *MockTokenProvider_GenerateRefreshToken_Call) RunAndReturn(run func(userID string, sessionID string) (string, error)) *MockTokenProvider_GenerateRefreshToken_Call
- type MockTokenProvider_ParseAccessToken_Call
- func (_c *MockTokenProvider_ParseAccessToken_Call) Return(accessTokenClaims *domain.AccessTokenClaims, err error) *MockTokenProvider_ParseAccessToken_Call
- func (_c *MockTokenProvider_ParseAccessToken_Call) Run(run func(tokenString string)) *MockTokenProvider_ParseAccessToken_Call
- func (_c *MockTokenProvider_ParseAccessToken_Call) RunAndReturn(run func(tokenString string) (*domain.AccessTokenClaims, error)) *MockTokenProvider_ParseAccessToken_Call
- type MockTokenProvider_ParseRefreshToken_Call
- func (_c *MockTokenProvider_ParseRefreshToken_Call) Return(refreshTokenClaims *domain.RefreshTokenClaims, err error) *MockTokenProvider_ParseRefreshToken_Call
- func (_c *MockTokenProvider_ParseRefreshToken_Call) Run(run func(tokenString string)) *MockTokenProvider_ParseRefreshToken_Call
- func (_c *MockTokenProvider_ParseRefreshToken_Call) RunAndReturn(run func(tokenString string) (*domain.RefreshTokenClaims, error)) *MockTokenProvider_ParseRefreshToken_Call
- type MockWriter
- func (_m *MockWriter) EXPECT() *MockWriter_Expecter
- func (_mock *MockWriter) FindOneAndDelete(ctx context.Context, table string, id any, dest any) error
- func (_mock *MockWriter) Insert(ctx context.Context, table string, data any) error
- func (_mock *MockWriter) Update(ctx context.Context, table string, data any) error
- type MockWriter_Expecter
- func (_e *MockWriter_Expecter) FindOneAndDelete(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockWriter_FindOneAndDelete_Call
- func (_e *MockWriter_Expecter) Insert(ctx interface{}, table interface{}, data interface{}) *MockWriter_Insert_Call
- func (_e *MockWriter_Expecter) Update(ctx interface{}, table interface{}, data interface{}) *MockWriter_Update_Call
- type MockWriter_FindOneAndDelete_Call
- func (_c *MockWriter_FindOneAndDelete_Call) Return(err error) *MockWriter_FindOneAndDelete_Call
- func (_c *MockWriter_FindOneAndDelete_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockWriter_FindOneAndDelete_Call
- func (_c *MockWriter_FindOneAndDelete_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockWriter_FindOneAndDelete_Call
- type MockWriter_Insert_Call
- func (_c *MockWriter_Insert_Call) Return(err error) *MockWriter_Insert_Call
- func (_c *MockWriter_Insert_Call) Run(run func(ctx context.Context, table string, data any)) *MockWriter_Insert_Call
- func (_c *MockWriter_Insert_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockWriter_Insert_Call
- type MockWriter_Update_Call
- func (_c *MockWriter_Update_Call) Return(err error) *MockWriter_Update_Call
- func (_c *MockWriter_Update_Call) Run(run func(ctx context.Context, table string, data any)) *MockWriter_Update_Call
- func (_c *MockWriter_Update_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockWriter_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthHandler ¶
MockAuthHandler is an autogenerated mock type for the AuthHandler type
func NewMockAuthHandler ¶
func NewMockAuthHandler(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthHandler
NewMockAuthHandler creates a new instance of MockAuthHandler. 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 (*MockAuthHandler) CreateAccount ¶
func (_mock *MockAuthHandler) CreateAccount(c echo.Context) error
CreateAccount provides a mock function for the type MockAuthHandler
func (*MockAuthHandler) DeleteUser ¶
func (_mock *MockAuthHandler) DeleteUser(c echo.Context) error
DeleteUser provides a mock function for the type MockAuthHandler
func (*MockAuthHandler) EXPECT ¶
func (_m *MockAuthHandler) EXPECT() *MockAuthHandler_Expecter
func (*MockAuthHandler) Login ¶
func (_mock *MockAuthHandler) Login(c echo.Context) error
Login provides a mock function for the type MockAuthHandler
func (*MockAuthHandler) Logout ¶
func (_mock *MockAuthHandler) Logout(c echo.Context) error
Logout provides a mock function for the type MockAuthHandler
func (*MockAuthHandler) Me ¶
func (_mock *MockAuthHandler) Me(c echo.Context) error
Me provides a mock function for the type MockAuthHandler
func (*MockAuthHandler) ReactivateAccount ¶
func (_mock *MockAuthHandler) ReactivateAccount(c echo.Context) error
ReactivateAccount provides a mock function for the type MockAuthHandler
func (*MockAuthHandler) UpdatePassword ¶
func (_mock *MockAuthHandler) UpdatePassword(c echo.Context) error
UpdatePassword provides a mock function for the type MockAuthHandler
func (*MockAuthHandler) UpdateUser ¶
func (_mock *MockAuthHandler) UpdateUser(c echo.Context) error
UpdateUser provides a mock function for the type MockAuthHandler
type MockAuthHandler_CreateAccount_Call ¶
MockAuthHandler_CreateAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAccount'
func (*MockAuthHandler_CreateAccount_Call) Return ¶
func (_c *MockAuthHandler_CreateAccount_Call) Return(err error) *MockAuthHandler_CreateAccount_Call
func (*MockAuthHandler_CreateAccount_Call) Run ¶
func (_c *MockAuthHandler_CreateAccount_Call) Run(run func(c echo.Context)) *MockAuthHandler_CreateAccount_Call
func (*MockAuthHandler_CreateAccount_Call) RunAndReturn ¶
func (_c *MockAuthHandler_CreateAccount_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_CreateAccount_Call
type MockAuthHandler_DeleteUser_Call ¶
MockAuthHandler_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'
func (*MockAuthHandler_DeleteUser_Call) Return ¶
func (_c *MockAuthHandler_DeleteUser_Call) Return(err error) *MockAuthHandler_DeleteUser_Call
func (*MockAuthHandler_DeleteUser_Call) Run ¶
func (_c *MockAuthHandler_DeleteUser_Call) Run(run func(c echo.Context)) *MockAuthHandler_DeleteUser_Call
func (*MockAuthHandler_DeleteUser_Call) RunAndReturn ¶
func (_c *MockAuthHandler_DeleteUser_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_DeleteUser_Call
type MockAuthHandler_Expecter ¶
type MockAuthHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthHandler_Expecter) CreateAccount ¶
func (_e *MockAuthHandler_Expecter) CreateAccount(c interface{}) *MockAuthHandler_CreateAccount_Call
CreateAccount is a helper method to define mock.On call
- c echo.Context
func (*MockAuthHandler_Expecter) DeleteUser ¶
func (_e *MockAuthHandler_Expecter) DeleteUser(c interface{}) *MockAuthHandler_DeleteUser_Call
DeleteUser is a helper method to define mock.On call
- c echo.Context
func (*MockAuthHandler_Expecter) Login ¶
func (_e *MockAuthHandler_Expecter) Login(c interface{}) *MockAuthHandler_Login_Call
Login is a helper method to define mock.On call
- c echo.Context
func (*MockAuthHandler_Expecter) Logout ¶
func (_e *MockAuthHandler_Expecter) Logout(c interface{}) *MockAuthHandler_Logout_Call
Logout is a helper method to define mock.On call
- c echo.Context
func (*MockAuthHandler_Expecter) Me ¶
func (_e *MockAuthHandler_Expecter) Me(c interface{}) *MockAuthHandler_Me_Call
Me is a helper method to define mock.On call
- c echo.Context
func (*MockAuthHandler_Expecter) ReactivateAccount ¶
func (_e *MockAuthHandler_Expecter) ReactivateAccount(c interface{}) *MockAuthHandler_ReactivateAccount_Call
ReactivateAccount is a helper method to define mock.On call
- c echo.Context
func (*MockAuthHandler_Expecter) UpdatePassword ¶
func (_e *MockAuthHandler_Expecter) UpdatePassword(c interface{}) *MockAuthHandler_UpdatePassword_Call
UpdatePassword is a helper method to define mock.On call
- c echo.Context
func (*MockAuthHandler_Expecter) UpdateUser ¶
func (_e *MockAuthHandler_Expecter) UpdateUser(c interface{}) *MockAuthHandler_UpdateUser_Call
UpdateUser is a helper method to define mock.On call
- c echo.Context
type MockAuthHandler_Login_Call ¶
MockAuthHandler_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*MockAuthHandler_Login_Call) Return ¶
func (_c *MockAuthHandler_Login_Call) Return(err error) *MockAuthHandler_Login_Call
func (*MockAuthHandler_Login_Call) Run ¶
func (_c *MockAuthHandler_Login_Call) Run(run func(c echo.Context)) *MockAuthHandler_Login_Call
func (*MockAuthHandler_Login_Call) RunAndReturn ¶
func (_c *MockAuthHandler_Login_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_Login_Call
type MockAuthHandler_Logout_Call ¶
MockAuthHandler_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'
func (*MockAuthHandler_Logout_Call) Return ¶
func (_c *MockAuthHandler_Logout_Call) Return(err error) *MockAuthHandler_Logout_Call
func (*MockAuthHandler_Logout_Call) Run ¶
func (_c *MockAuthHandler_Logout_Call) Run(run func(c echo.Context)) *MockAuthHandler_Logout_Call
func (*MockAuthHandler_Logout_Call) RunAndReturn ¶
func (_c *MockAuthHandler_Logout_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_Logout_Call
type MockAuthHandler_Me_Call ¶
MockAuthHandler_Me_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Me'
func (*MockAuthHandler_Me_Call) Return ¶
func (_c *MockAuthHandler_Me_Call) Return(err error) *MockAuthHandler_Me_Call
func (*MockAuthHandler_Me_Call) Run ¶
func (_c *MockAuthHandler_Me_Call) Run(run func(c echo.Context)) *MockAuthHandler_Me_Call
func (*MockAuthHandler_Me_Call) RunAndReturn ¶
func (_c *MockAuthHandler_Me_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_Me_Call
type MockAuthHandler_ReactivateAccount_Call ¶
MockAuthHandler_ReactivateAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReactivateAccount'
func (*MockAuthHandler_ReactivateAccount_Call) Return ¶
func (_c *MockAuthHandler_ReactivateAccount_Call) Return(err error) *MockAuthHandler_ReactivateAccount_Call
func (*MockAuthHandler_ReactivateAccount_Call) Run ¶
func (_c *MockAuthHandler_ReactivateAccount_Call) Run(run func(c echo.Context)) *MockAuthHandler_ReactivateAccount_Call
func (*MockAuthHandler_ReactivateAccount_Call) RunAndReturn ¶
func (_c *MockAuthHandler_ReactivateAccount_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_ReactivateAccount_Call
type MockAuthHandler_UpdatePassword_Call ¶
MockAuthHandler_UpdatePassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePassword'
func (*MockAuthHandler_UpdatePassword_Call) Return ¶
func (_c *MockAuthHandler_UpdatePassword_Call) Return(err error) *MockAuthHandler_UpdatePassword_Call
func (*MockAuthHandler_UpdatePassword_Call) Run ¶
func (_c *MockAuthHandler_UpdatePassword_Call) Run(run func(c echo.Context)) *MockAuthHandler_UpdatePassword_Call
func (*MockAuthHandler_UpdatePassword_Call) RunAndReturn ¶
func (_c *MockAuthHandler_UpdatePassword_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_UpdatePassword_Call
type MockAuthHandler_UpdateUser_Call ¶
MockAuthHandler_UpdateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUser'
func (*MockAuthHandler_UpdateUser_Call) Return ¶
func (_c *MockAuthHandler_UpdateUser_Call) Return(err error) *MockAuthHandler_UpdateUser_Call
func (*MockAuthHandler_UpdateUser_Call) Run ¶
func (_c *MockAuthHandler_UpdateUser_Call) Run(run func(c echo.Context)) *MockAuthHandler_UpdateUser_Call
func (*MockAuthHandler_UpdateUser_Call) RunAndReturn ¶
func (_c *MockAuthHandler_UpdateUser_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_UpdateUser_Call
type MockAuthRepository ¶
MockAuthRepository is an autogenerated mock type for the AuthRepository type
func NewMockAuthRepository ¶
func NewMockAuthRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthRepository
NewMockAuthRepository creates a new instance of MockAuthRepository. 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 (*MockAuthRepository) CreateUser ¶
CreateUser provides a mock function for the type MockAuthRepository
func (*MockAuthRepository) DeleteDeactivatedUsers ¶
func (_mock *MockAuthRepository) DeleteDeactivatedUsers(ctx context.Context) (int64, error)
DeleteDeactivatedUsers provides a mock function for the type MockAuthRepository
func (*MockAuthRepository) DeleteUser ¶
DeleteUser provides a mock function for the type MockAuthRepository
func (*MockAuthRepository) EXPECT ¶
func (_m *MockAuthRepository) EXPECT() *MockAuthRepository_Expecter
func (*MockAuthRepository) FindUserByEmail ¶
func (_mock *MockAuthRepository) FindUserByEmail(ctx context.Context, email string) (*domain.User, error)
FindUserByEmail provides a mock function for the type MockAuthRepository
func (*MockAuthRepository) FindUserByID ¶
func (_mock *MockAuthRepository) FindUserByID(ctx context.Context, id uuid.UUID) (*domain.User, error)
FindUserByID provides a mock function for the type MockAuthRepository
func (*MockAuthRepository) UpdateUser ¶
UpdateUser provides a mock function for the type MockAuthRepository
type MockAuthRepository_CreateUser_Call ¶
MockAuthRepository_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*MockAuthRepository_CreateUser_Call) Return ¶
func (_c *MockAuthRepository_CreateUser_Call) Return(err error) *MockAuthRepository_CreateUser_Call
func (*MockAuthRepository_CreateUser_Call) Run ¶
func (_c *MockAuthRepository_CreateUser_Call) Run(run func(ctx context.Context, user *domain.User)) *MockAuthRepository_CreateUser_Call
func (*MockAuthRepository_CreateUser_Call) RunAndReturn ¶
func (_c *MockAuthRepository_CreateUser_Call) RunAndReturn(run func(ctx context.Context, user *domain.User) error) *MockAuthRepository_CreateUser_Call
type MockAuthRepository_DeleteDeactivatedUsers_Call ¶
MockAuthRepository_DeleteDeactivatedUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDeactivatedUsers'
func (*MockAuthRepository_DeleteDeactivatedUsers_Call) Return ¶
func (_c *MockAuthRepository_DeleteDeactivatedUsers_Call) Return(n int64, err error) *MockAuthRepository_DeleteDeactivatedUsers_Call
func (*MockAuthRepository_DeleteDeactivatedUsers_Call) Run ¶
func (_c *MockAuthRepository_DeleteDeactivatedUsers_Call) Run(run func(ctx context.Context)) *MockAuthRepository_DeleteDeactivatedUsers_Call
func (*MockAuthRepository_DeleteDeactivatedUsers_Call) RunAndReturn ¶
func (_c *MockAuthRepository_DeleteDeactivatedUsers_Call) RunAndReturn(run func(ctx context.Context) (int64, error)) *MockAuthRepository_DeleteDeactivatedUsers_Call
type MockAuthRepository_DeleteUser_Call ¶
MockAuthRepository_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'
func (*MockAuthRepository_DeleteUser_Call) Return ¶
func (_c *MockAuthRepository_DeleteUser_Call) Return(err error) *MockAuthRepository_DeleteUser_Call
func (*MockAuthRepository_DeleteUser_Call) Run ¶
func (_c *MockAuthRepository_DeleteUser_Call) Run(run func(ctx context.Context, id uuid.UUID)) *MockAuthRepository_DeleteUser_Call
func (*MockAuthRepository_DeleteUser_Call) RunAndReturn ¶
func (_c *MockAuthRepository_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) error) *MockAuthRepository_DeleteUser_Call
type MockAuthRepository_Expecter ¶
type MockAuthRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthRepository_Expecter) CreateUser ¶
func (_e *MockAuthRepository_Expecter) CreateUser(ctx interface{}, user interface{}) *MockAuthRepository_CreateUser_Call
CreateUser is a helper method to define mock.On call
- ctx context.Context
- user *domain.User
func (*MockAuthRepository_Expecter) DeleteDeactivatedUsers ¶
func (_e *MockAuthRepository_Expecter) DeleteDeactivatedUsers(ctx interface{}) *MockAuthRepository_DeleteDeactivatedUsers_Call
DeleteDeactivatedUsers is a helper method to define mock.On call
- ctx context.Context
func (*MockAuthRepository_Expecter) DeleteUser ¶
func (_e *MockAuthRepository_Expecter) DeleteUser(ctx interface{}, id interface{}) *MockAuthRepository_DeleteUser_Call
DeleteUser is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*MockAuthRepository_Expecter) FindUserByEmail ¶
func (_e *MockAuthRepository_Expecter) FindUserByEmail(ctx interface{}, email interface{}) *MockAuthRepository_FindUserByEmail_Call
FindUserByEmail is a helper method to define mock.On call
- ctx context.Context
- email string
func (*MockAuthRepository_Expecter) FindUserByID ¶
func (_e *MockAuthRepository_Expecter) FindUserByID(ctx interface{}, id interface{}) *MockAuthRepository_FindUserByID_Call
FindUserByID is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*MockAuthRepository_Expecter) UpdateUser ¶
func (_e *MockAuthRepository_Expecter) UpdateUser(ctx interface{}, user interface{}) *MockAuthRepository_UpdateUser_Call
UpdateUser is a helper method to define mock.On call
- ctx context.Context
- user *domain.User
type MockAuthRepository_FindUserByEmail_Call ¶
MockAuthRepository_FindUserByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindUserByEmail'
func (*MockAuthRepository_FindUserByEmail_Call) Return ¶
func (_c *MockAuthRepository_FindUserByEmail_Call) Return(user *domain.User, err error) *MockAuthRepository_FindUserByEmail_Call
func (*MockAuthRepository_FindUserByEmail_Call) Run ¶
func (_c *MockAuthRepository_FindUserByEmail_Call) Run(run func(ctx context.Context, email string)) *MockAuthRepository_FindUserByEmail_Call
func (*MockAuthRepository_FindUserByEmail_Call) RunAndReturn ¶
func (_c *MockAuthRepository_FindUserByEmail_Call) RunAndReturn(run func(ctx context.Context, email string) (*domain.User, error)) *MockAuthRepository_FindUserByEmail_Call
type MockAuthRepository_FindUserByID_Call ¶
MockAuthRepository_FindUserByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindUserByID'
func (*MockAuthRepository_FindUserByID_Call) Return ¶
func (_c *MockAuthRepository_FindUserByID_Call) Return(user *domain.User, err error) *MockAuthRepository_FindUserByID_Call
func (*MockAuthRepository_FindUserByID_Call) Run ¶
func (_c *MockAuthRepository_FindUserByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *MockAuthRepository_FindUserByID_Call
func (*MockAuthRepository_FindUserByID_Call) RunAndReturn ¶
func (_c *MockAuthRepository_FindUserByID_Call) RunAndReturn(run func(ctx context.Context, id uuid.UUID) (*domain.User, error)) *MockAuthRepository_FindUserByID_Call
type MockAuthRepository_UpdateUser_Call ¶
MockAuthRepository_UpdateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUser'
func (*MockAuthRepository_UpdateUser_Call) Return ¶
func (_c *MockAuthRepository_UpdateUser_Call) Return(err error) *MockAuthRepository_UpdateUser_Call
func (*MockAuthRepository_UpdateUser_Call) Run ¶
func (_c *MockAuthRepository_UpdateUser_Call) Run(run func(ctx context.Context, user *domain.User)) *MockAuthRepository_UpdateUser_Call
func (*MockAuthRepository_UpdateUser_Call) RunAndReturn ¶
func (_c *MockAuthRepository_UpdateUser_Call) RunAndReturn(run func(ctx context.Context, user *domain.User) error) *MockAuthRepository_UpdateUser_Call
type MockAuthService ¶
MockAuthService is an autogenerated mock type for the AuthService type
func NewMockAuthService ¶
func NewMockAuthService(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthService
NewMockAuthService creates a new instance of MockAuthService. 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 (*MockAuthService) CreateAccount ¶
func (_mock *MockAuthService) CreateAccount(ctx context.Context, req domain.CreateAccountRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)
CreateAccount provides a mock function for the type MockAuthService
func (*MockAuthService) DeleteUser ¶
func (_mock *MockAuthService) DeleteUser(ctx context.Context, userID string) error
DeleteUser provides a mock function for the type MockAuthService
func (*MockAuthService) EXPECT ¶
func (_m *MockAuthService) EXPECT() *MockAuthService_Expecter
func (*MockAuthService) Login ¶
func (_mock *MockAuthService) Login(ctx context.Context, req domain.LoginRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)
Login provides a mock function for the type MockAuthService
func (*MockAuthService) Logout ¶
func (_mock *MockAuthService) Logout(ctx context.Context, sessionID string) error
Logout provides a mock function for the type MockAuthService
func (*MockAuthService) ReactivateAccount ¶
func (_mock *MockAuthService) ReactivateAccount(ctx context.Context, req domain.LoginRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)
ReactivateAccount provides a mock function for the type MockAuthService
func (*MockAuthService) UpdatePassword ¶
func (_mock *MockAuthService) UpdatePassword(ctx context.Context, userID string, req domain.UpdatePasswordRequest) error
UpdatePassword provides a mock function for the type MockAuthService
func (*MockAuthService) UpdateUser ¶
func (_mock *MockAuthService) UpdateUser(ctx context.Context, userID string, req domain.UpdateUserRequest) (*domain.UserResponse, error)
UpdateUser provides a mock function for the type MockAuthService
type MockAuthService_CreateAccount_Call ¶
MockAuthService_CreateAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAccount'
func (*MockAuthService_CreateAccount_Call) Return ¶
func (_c *MockAuthService_CreateAccount_Call) Return(authResponse *domain.AuthResponse, err error) *MockAuthService_CreateAccount_Call
func (*MockAuthService_CreateAccount_Call) Run ¶
func (_c *MockAuthService_CreateAccount_Call) Run(run func(ctx context.Context, req domain.CreateAccountRequest, device domain.DeviceInfo)) *MockAuthService_CreateAccount_Call
func (*MockAuthService_CreateAccount_Call) RunAndReturn ¶
func (_c *MockAuthService_CreateAccount_Call) RunAndReturn(run func(ctx context.Context, req domain.CreateAccountRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)) *MockAuthService_CreateAccount_Call
type MockAuthService_DeleteUser_Call ¶
MockAuthService_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'
func (*MockAuthService_DeleteUser_Call) Return ¶
func (_c *MockAuthService_DeleteUser_Call) Return(err error) *MockAuthService_DeleteUser_Call
func (*MockAuthService_DeleteUser_Call) Run ¶
func (_c *MockAuthService_DeleteUser_Call) Run(run func(ctx context.Context, userID string)) *MockAuthService_DeleteUser_Call
func (*MockAuthService_DeleteUser_Call) RunAndReturn ¶
func (_c *MockAuthService_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, userID string) error) *MockAuthService_DeleteUser_Call
type MockAuthService_Expecter ¶
type MockAuthService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthService_Expecter) CreateAccount ¶
func (_e *MockAuthService_Expecter) CreateAccount(ctx interface{}, req interface{}, device interface{}) *MockAuthService_CreateAccount_Call
CreateAccount is a helper method to define mock.On call
- ctx context.Context
- req domain.CreateAccountRequest
- device domain.DeviceInfo
func (*MockAuthService_Expecter) DeleteUser ¶
func (_e *MockAuthService_Expecter) DeleteUser(ctx interface{}, userID interface{}) *MockAuthService_DeleteUser_Call
DeleteUser is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*MockAuthService_Expecter) Login ¶
func (_e *MockAuthService_Expecter) Login(ctx interface{}, req interface{}, device interface{}) *MockAuthService_Login_Call
Login is a helper method to define mock.On call
- ctx context.Context
- req domain.LoginRequest
- device domain.DeviceInfo
func (*MockAuthService_Expecter) Logout ¶
func (_e *MockAuthService_Expecter) Logout(ctx interface{}, sessionID interface{}) *MockAuthService_Logout_Call
Logout is a helper method to define mock.On call
- ctx context.Context
- sessionID string
func (*MockAuthService_Expecter) ReactivateAccount ¶
func (_e *MockAuthService_Expecter) ReactivateAccount(ctx interface{}, req interface{}, device interface{}) *MockAuthService_ReactivateAccount_Call
ReactivateAccount is a helper method to define mock.On call
- ctx context.Context
- req domain.LoginRequest
- device domain.DeviceInfo
func (*MockAuthService_Expecter) UpdatePassword ¶
func (_e *MockAuthService_Expecter) UpdatePassword(ctx interface{}, userID interface{}, req interface{}) *MockAuthService_UpdatePassword_Call
UpdatePassword is a helper method to define mock.On call
- ctx context.Context
- userID string
- req domain.UpdatePasswordRequest
func (*MockAuthService_Expecter) UpdateUser ¶
func (_e *MockAuthService_Expecter) UpdateUser(ctx interface{}, userID interface{}, req interface{}) *MockAuthService_UpdateUser_Call
UpdateUser is a helper method to define mock.On call
- ctx context.Context
- userID string
- req domain.UpdateUserRequest
type MockAuthService_Login_Call ¶
MockAuthService_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*MockAuthService_Login_Call) Return ¶
func (_c *MockAuthService_Login_Call) Return(authResponse *domain.AuthResponse, err error) *MockAuthService_Login_Call
func (*MockAuthService_Login_Call) Run ¶
func (_c *MockAuthService_Login_Call) Run(run func(ctx context.Context, req domain.LoginRequest, device domain.DeviceInfo)) *MockAuthService_Login_Call
func (*MockAuthService_Login_Call) RunAndReturn ¶
func (_c *MockAuthService_Login_Call) RunAndReturn(run func(ctx context.Context, req domain.LoginRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)) *MockAuthService_Login_Call
type MockAuthService_Logout_Call ¶
MockAuthService_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'
func (*MockAuthService_Logout_Call) Return ¶
func (_c *MockAuthService_Logout_Call) Return(err error) *MockAuthService_Logout_Call
func (*MockAuthService_Logout_Call) Run ¶
func (_c *MockAuthService_Logout_Call) Run(run func(ctx context.Context, sessionID string)) *MockAuthService_Logout_Call
func (*MockAuthService_Logout_Call) RunAndReturn ¶
func (_c *MockAuthService_Logout_Call) RunAndReturn(run func(ctx context.Context, sessionID string) error) *MockAuthService_Logout_Call
type MockAuthService_ReactivateAccount_Call ¶
MockAuthService_ReactivateAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReactivateAccount'
func (*MockAuthService_ReactivateAccount_Call) Return ¶
func (_c *MockAuthService_ReactivateAccount_Call) Return(authResponse *domain.AuthResponse, err error) *MockAuthService_ReactivateAccount_Call
func (*MockAuthService_ReactivateAccount_Call) Run ¶
func (_c *MockAuthService_ReactivateAccount_Call) Run(run func(ctx context.Context, req domain.LoginRequest, device domain.DeviceInfo)) *MockAuthService_ReactivateAccount_Call
func (*MockAuthService_ReactivateAccount_Call) RunAndReturn ¶
func (_c *MockAuthService_ReactivateAccount_Call) RunAndReturn(run func(ctx context.Context, req domain.LoginRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)) *MockAuthService_ReactivateAccount_Call
type MockAuthService_UpdatePassword_Call ¶
MockAuthService_UpdatePassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePassword'
func (*MockAuthService_UpdatePassword_Call) Return ¶
func (_c *MockAuthService_UpdatePassword_Call) Return(err error) *MockAuthService_UpdatePassword_Call
func (*MockAuthService_UpdatePassword_Call) Run ¶
func (_c *MockAuthService_UpdatePassword_Call) Run(run func(ctx context.Context, userID string, req domain.UpdatePasswordRequest)) *MockAuthService_UpdatePassword_Call
func (*MockAuthService_UpdatePassword_Call) RunAndReturn ¶
func (_c *MockAuthService_UpdatePassword_Call) RunAndReturn(run func(ctx context.Context, userID string, req domain.UpdatePasswordRequest) error) *MockAuthService_UpdatePassword_Call
type MockAuthService_UpdateUser_Call ¶
MockAuthService_UpdateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUser'
func (*MockAuthService_UpdateUser_Call) Return ¶
func (_c *MockAuthService_UpdateUser_Call) Return(userResponse *domain.UserResponse, err error) *MockAuthService_UpdateUser_Call
func (*MockAuthService_UpdateUser_Call) Run ¶
func (_c *MockAuthService_UpdateUser_Call) Run(run func(ctx context.Context, userID string, req domain.UpdateUserRequest)) *MockAuthService_UpdateUser_Call
func (*MockAuthService_UpdateUser_Call) RunAndReturn ¶
func (_c *MockAuthService_UpdateUser_Call) RunAndReturn(run func(ctx context.Context, userID string, req domain.UpdateUserRequest) (*domain.UserResponse, error)) *MockAuthService_UpdateUser_Call
type MockDeviceRepository ¶
MockDeviceRepository is an autogenerated mock type for the DeviceRepository type
func NewMockDeviceRepository ¶
func NewMockDeviceRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockDeviceRepository
NewMockDeviceRepository creates a new instance of MockDeviceRepository. 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 (*MockDeviceRepository) CreateDevice ¶
CreateDevice provides a mock function for the type MockDeviceRepository
func (*MockDeviceRepository) DeleteDeviceBySessionID ¶
func (_mock *MockDeviceRepository) DeleteDeviceBySessionID(ctx context.Context, sessionID uuid.UUID) error
DeleteDeviceBySessionID provides a mock function for the type MockDeviceRepository
func (*MockDeviceRepository) DeleteDevicesByUserID ¶
func (_mock *MockDeviceRepository) DeleteDevicesByUserID(ctx context.Context, userID uuid.UUID) error
DeleteDevicesByUserID provides a mock function for the type MockDeviceRepository
func (*MockDeviceRepository) DeleteExpiredDevices ¶
func (_mock *MockDeviceRepository) DeleteExpiredDevices(ctx context.Context) (int64, error)
DeleteExpiredDevices provides a mock function for the type MockDeviceRepository
func (*MockDeviceRepository) EXPECT ¶
func (_m *MockDeviceRepository) EXPECT() *MockDeviceRepository_Expecter
func (*MockDeviceRepository) FindDeviceBySessionID ¶
func (_mock *MockDeviceRepository) FindDeviceBySessionID(ctx context.Context, sessionID uuid.UUID) (*domain.Device, error)
FindDeviceBySessionID provides a mock function for the type MockDeviceRepository
type MockDeviceRepository_CreateDevice_Call ¶
MockDeviceRepository_CreateDevice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDevice'
func (*MockDeviceRepository_CreateDevice_Call) Return ¶
func (_c *MockDeviceRepository_CreateDevice_Call) Return(err error) *MockDeviceRepository_CreateDevice_Call
func (*MockDeviceRepository_CreateDevice_Call) Run ¶
func (_c *MockDeviceRepository_CreateDevice_Call) Run(run func(ctx context.Context, device *domain.Device)) *MockDeviceRepository_CreateDevice_Call
func (*MockDeviceRepository_CreateDevice_Call) RunAndReturn ¶
func (_c *MockDeviceRepository_CreateDevice_Call) RunAndReturn(run func(ctx context.Context, device *domain.Device) error) *MockDeviceRepository_CreateDevice_Call
type MockDeviceRepository_DeleteDeviceBySessionID_Call ¶
MockDeviceRepository_DeleteDeviceBySessionID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDeviceBySessionID'
func (*MockDeviceRepository_DeleteDeviceBySessionID_Call) Return ¶
func (_c *MockDeviceRepository_DeleteDeviceBySessionID_Call) Return(err error) *MockDeviceRepository_DeleteDeviceBySessionID_Call
func (*MockDeviceRepository_DeleteDeviceBySessionID_Call) Run ¶
func (_c *MockDeviceRepository_DeleteDeviceBySessionID_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *MockDeviceRepository_DeleteDeviceBySessionID_Call
func (*MockDeviceRepository_DeleteDeviceBySessionID_Call) RunAndReturn ¶
func (_c *MockDeviceRepository_DeleteDeviceBySessionID_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID) error) *MockDeviceRepository_DeleteDeviceBySessionID_Call
type MockDeviceRepository_DeleteDevicesByUserID_Call ¶
MockDeviceRepository_DeleteDevicesByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDevicesByUserID'
func (*MockDeviceRepository_DeleteDevicesByUserID_Call) Return ¶
func (_c *MockDeviceRepository_DeleteDevicesByUserID_Call) Return(err error) *MockDeviceRepository_DeleteDevicesByUserID_Call
func (*MockDeviceRepository_DeleteDevicesByUserID_Call) Run ¶
func (_c *MockDeviceRepository_DeleteDevicesByUserID_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *MockDeviceRepository_DeleteDevicesByUserID_Call
func (*MockDeviceRepository_DeleteDevicesByUserID_Call) RunAndReturn ¶
func (_c *MockDeviceRepository_DeleteDevicesByUserID_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) error) *MockDeviceRepository_DeleteDevicesByUserID_Call
type MockDeviceRepository_DeleteExpiredDevices_Call ¶
MockDeviceRepository_DeleteExpiredDevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteExpiredDevices'
func (*MockDeviceRepository_DeleteExpiredDevices_Call) Return ¶
func (_c *MockDeviceRepository_DeleteExpiredDevices_Call) Return(n int64, err error) *MockDeviceRepository_DeleteExpiredDevices_Call
func (*MockDeviceRepository_DeleteExpiredDevices_Call) Run ¶
func (_c *MockDeviceRepository_DeleteExpiredDevices_Call) Run(run func(ctx context.Context)) *MockDeviceRepository_DeleteExpiredDevices_Call
func (*MockDeviceRepository_DeleteExpiredDevices_Call) RunAndReturn ¶
func (_c *MockDeviceRepository_DeleteExpiredDevices_Call) RunAndReturn(run func(ctx context.Context) (int64, error)) *MockDeviceRepository_DeleteExpiredDevices_Call
type MockDeviceRepository_Expecter ¶
type MockDeviceRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDeviceRepository_Expecter) CreateDevice ¶
func (_e *MockDeviceRepository_Expecter) CreateDevice(ctx interface{}, device interface{}) *MockDeviceRepository_CreateDevice_Call
CreateDevice is a helper method to define mock.On call
- ctx context.Context
- device *domain.Device
func (*MockDeviceRepository_Expecter) DeleteDeviceBySessionID ¶
func (_e *MockDeviceRepository_Expecter) DeleteDeviceBySessionID(ctx interface{}, sessionID interface{}) *MockDeviceRepository_DeleteDeviceBySessionID_Call
DeleteDeviceBySessionID is a helper method to define mock.On call
- ctx context.Context
- sessionID uuid.UUID
func (*MockDeviceRepository_Expecter) DeleteDevicesByUserID ¶
func (_e *MockDeviceRepository_Expecter) DeleteDevicesByUserID(ctx interface{}, userID interface{}) *MockDeviceRepository_DeleteDevicesByUserID_Call
DeleteDevicesByUserID is a helper method to define mock.On call
- ctx context.Context
- userID uuid.UUID
func (*MockDeviceRepository_Expecter) DeleteExpiredDevices ¶
func (_e *MockDeviceRepository_Expecter) DeleteExpiredDevices(ctx interface{}) *MockDeviceRepository_DeleteExpiredDevices_Call
DeleteExpiredDevices is a helper method to define mock.On call
- ctx context.Context
func (*MockDeviceRepository_Expecter) FindDeviceBySessionID ¶
func (_e *MockDeviceRepository_Expecter) FindDeviceBySessionID(ctx interface{}, sessionID interface{}) *MockDeviceRepository_FindDeviceBySessionID_Call
FindDeviceBySessionID is a helper method to define mock.On call
- ctx context.Context
- sessionID uuid.UUID
type MockDeviceRepository_FindDeviceBySessionID_Call ¶
MockDeviceRepository_FindDeviceBySessionID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindDeviceBySessionID'
func (*MockDeviceRepository_FindDeviceBySessionID_Call) Return ¶
func (_c *MockDeviceRepository_FindDeviceBySessionID_Call) Return(device *domain.Device, err error) *MockDeviceRepository_FindDeviceBySessionID_Call
func (*MockDeviceRepository_FindDeviceBySessionID_Call) Run ¶
func (_c *MockDeviceRepository_FindDeviceBySessionID_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *MockDeviceRepository_FindDeviceBySessionID_Call
func (*MockDeviceRepository_FindDeviceBySessionID_Call) RunAndReturn ¶
func (_c *MockDeviceRepository_FindDeviceBySessionID_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID) (*domain.Device, error)) *MockDeviceRepository_FindDeviceBySessionID_Call
type MockHealthCheckHandler ¶
MockHealthCheckHandler is an autogenerated mock type for the HealthCheckHandler type
func NewMockHealthCheckHandler ¶
func NewMockHealthCheckHandler(t interface {
mock.TestingT
Cleanup(func())
}) *MockHealthCheckHandler
NewMockHealthCheckHandler creates a new instance of MockHealthCheckHandler. 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 (*MockHealthCheckHandler) Check ¶
func (_mock *MockHealthCheckHandler) Check(ctx echo.Context) error
Check provides a mock function for the type MockHealthCheckHandler
func (*MockHealthCheckHandler) EXPECT ¶
func (_m *MockHealthCheckHandler) EXPECT() *MockHealthCheckHandler_Expecter
type MockHealthCheckHandler_Check_Call ¶
MockHealthCheckHandler_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*MockHealthCheckHandler_Check_Call) Return ¶
func (_c *MockHealthCheckHandler_Check_Call) Return(err error) *MockHealthCheckHandler_Check_Call
func (*MockHealthCheckHandler_Check_Call) Run ¶
func (_c *MockHealthCheckHandler_Check_Call) Run(run func(ctx echo.Context)) *MockHealthCheckHandler_Check_Call
func (*MockHealthCheckHandler_Check_Call) RunAndReturn ¶
func (_c *MockHealthCheckHandler_Check_Call) RunAndReturn(run func(ctx echo.Context) error) *MockHealthCheckHandler_Check_Call
type MockHealthCheckHandler_Expecter ¶
type MockHealthCheckHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHealthCheckHandler_Expecter) Check ¶
func (_e *MockHealthCheckHandler_Expecter) Check(ctx interface{}) *MockHealthCheckHandler_Check_Call
Check is a helper method to define mock.On call
- ctx echo.Context
type MockHealthCheckerService ¶
MockHealthCheckerService is an autogenerated mock type for the HealthCheckerService type
func NewMockHealthCheckerService ¶
func NewMockHealthCheckerService(t interface {
mock.TestingT
Cleanup(func())
}) *MockHealthCheckerService
NewMockHealthCheckerService creates a new instance of MockHealthCheckerService. 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 (*MockHealthCheckerService) Check ¶
func (_mock *MockHealthCheckerService) Check() (domain.HealthCheck, []error)
Check provides a mock function for the type MockHealthCheckerService
func (*MockHealthCheckerService) EXPECT ¶
func (_m *MockHealthCheckerService) EXPECT() *MockHealthCheckerService_Expecter
type MockHealthCheckerService_Check_Call ¶
MockHealthCheckerService_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*MockHealthCheckerService_Check_Call) Return ¶
func (_c *MockHealthCheckerService_Check_Call) Return(healthCheck domain.HealthCheck, errs []error) *MockHealthCheckerService_Check_Call
func (*MockHealthCheckerService_Check_Call) Run ¶
func (_c *MockHealthCheckerService_Check_Call) Run(run func()) *MockHealthCheckerService_Check_Call
func (*MockHealthCheckerService_Check_Call) RunAndReturn ¶
func (_c *MockHealthCheckerService_Check_Call) RunAndReturn(run func() (domain.HealthCheck, []error)) *MockHealthCheckerService_Check_Call
type MockHealthCheckerService_Expecter ¶
type MockHealthCheckerService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHealthCheckerService_Expecter) Check ¶
func (_e *MockHealthCheckerService_Expecter) Check() *MockHealthCheckerService_Check_Call
Check is a helper method to define mock.On call
type MockPasswordHasher ¶
MockPasswordHasher is an autogenerated mock type for the PasswordHasher type
func NewMockPasswordHasher ¶
func NewMockPasswordHasher(t interface {
mock.TestingT
Cleanup(func())
}) *MockPasswordHasher
NewMockPasswordHasher creates a new instance of MockPasswordHasher. 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 (*MockPasswordHasher) Check ¶
func (_mock *MockPasswordHasher) Check(password string, hash string) error
Check provides a mock function for the type MockPasswordHasher
func (*MockPasswordHasher) EXPECT ¶
func (_m *MockPasswordHasher) EXPECT() *MockPasswordHasher_Expecter
type MockPasswordHasher_Check_Call ¶
MockPasswordHasher_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*MockPasswordHasher_Check_Call) Return ¶
func (_c *MockPasswordHasher_Check_Call) Return(err error) *MockPasswordHasher_Check_Call
func (*MockPasswordHasher_Check_Call) Run ¶
func (_c *MockPasswordHasher_Check_Call) Run(run func(password string, hash string)) *MockPasswordHasher_Check_Call
func (*MockPasswordHasher_Check_Call) RunAndReturn ¶
func (_c *MockPasswordHasher_Check_Call) RunAndReturn(run func(password string, hash string) error) *MockPasswordHasher_Check_Call
type MockPasswordHasher_Expecter ¶
type MockPasswordHasher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPasswordHasher_Expecter) Check ¶
func (_e *MockPasswordHasher_Expecter) Check(password interface{}, hash interface{}) *MockPasswordHasher_Check_Call
Check is a helper method to define mock.On call
- password string
- hash string
func (*MockPasswordHasher_Expecter) Hash ¶
func (_e *MockPasswordHasher_Expecter) Hash(password interface{}) *MockPasswordHasher_Hash_Call
Hash is a helper method to define mock.On call
- password string
type MockPasswordHasher_Hash_Call ¶
MockPasswordHasher_Hash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hash'
func (*MockPasswordHasher_Hash_Call) Return ¶
func (_c *MockPasswordHasher_Hash_Call) Return(s string, err error) *MockPasswordHasher_Hash_Call
func (*MockPasswordHasher_Hash_Call) Run ¶
func (_c *MockPasswordHasher_Hash_Call) Run(run func(password string)) *MockPasswordHasher_Hash_Call
func (*MockPasswordHasher_Hash_Call) RunAndReturn ¶
func (_c *MockPasswordHasher_Hash_Call) RunAndReturn(run func(password string) (string, error)) *MockPasswordHasher_Hash_Call
type MockQuerier ¶
MockQuerier is an autogenerated mock type for the Querier type
func NewMockQuerier ¶
func NewMockQuerier(t interface {
mock.TestingT
Cleanup(func())
}) *MockQuerier
NewMockQuerier creates a new instance of MockQuerier. 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 (*MockQuerier) EXPECT ¶
func (_m *MockQuerier) EXPECT() *MockQuerier_Expecter
func (*MockQuerier) FindByEmail ¶
func (_mock *MockQuerier) FindByEmail(ctx context.Context, table string, email string, dest any) error
FindByEmail provides a mock function for the type MockQuerier
type MockQuerier_Expecter ¶
type MockQuerier_Expecter struct {
// contains filtered or unexported fields
}
func (*MockQuerier_Expecter) FindByEmail ¶
func (_e *MockQuerier_Expecter) FindByEmail(ctx interface{}, table interface{}, email interface{}, dest interface{}) *MockQuerier_FindByEmail_Call
FindByEmail is a helper method to define mock.On call
- ctx context.Context
- table string
- email string
- dest any
func (*MockQuerier_Expecter) FindByID ¶
func (_e *MockQuerier_Expecter) FindByID(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockQuerier_FindByID_Call
FindByID is a helper method to define mock.On call
- ctx context.Context
- table string
- id any
- dest any
type MockQuerier_FindByEmail_Call ¶
MockQuerier_FindByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByEmail'
func (*MockQuerier_FindByEmail_Call) Return ¶
func (_c *MockQuerier_FindByEmail_Call) Return(err error) *MockQuerier_FindByEmail_Call
func (*MockQuerier_FindByEmail_Call) Run ¶
func (_c *MockQuerier_FindByEmail_Call) Run(run func(ctx context.Context, table string, email string, dest any)) *MockQuerier_FindByEmail_Call
func (*MockQuerier_FindByEmail_Call) RunAndReturn ¶
func (_c *MockQuerier_FindByEmail_Call) RunAndReturn(run func(ctx context.Context, table string, email string, dest any) error) *MockQuerier_FindByEmail_Call
type MockQuerier_FindByID_Call ¶
MockQuerier_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'
func (*MockQuerier_FindByID_Call) Return ¶
func (_c *MockQuerier_FindByID_Call) Return(err error) *MockQuerier_FindByID_Call
func (*MockQuerier_FindByID_Call) Run ¶
func (_c *MockQuerier_FindByID_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockQuerier_FindByID_Call
func (*MockQuerier_FindByID_Call) RunAndReturn ¶
func (_c *MockQuerier_FindByID_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockQuerier_FindByID_Call
type MockReader ¶
MockReader is an autogenerated mock type for the Reader type
func NewMockReader ¶
func NewMockReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockReader
NewMockReader creates a new instance of MockReader. 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 (*MockReader) EXPECT ¶
func (_m *MockReader) EXPECT() *MockReader_Expecter
func (*MockReader) GetDB ¶
func (_mock *MockReader) GetDB() any
GetDB provides a mock function for the type MockReader
type MockReader_Expecter ¶
type MockReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockReader_Expecter) GetDB ¶
func (_e *MockReader_Expecter) GetDB() *MockReader_GetDB_Call
GetDB is a helper method to define mock.On call
type MockReader_GetDB_Call ¶
MockReader_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*MockReader_GetDB_Call) Return ¶
func (_c *MockReader_GetDB_Call) Return(v any) *MockReader_GetDB_Call
func (*MockReader_GetDB_Call) Run ¶
func (_c *MockReader_GetDB_Call) Run(run func()) *MockReader_GetDB_Call
func (*MockReader_GetDB_Call) RunAndReturn ¶
func (_c *MockReader_GetDB_Call) RunAndReturn(run func() any) *MockReader_GetDB_Call
type MockSessionRepository ¶
MockSessionRepository is an autogenerated mock type for the SessionRepository type
func NewMockSessionRepository ¶
func NewMockSessionRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockSessionRepository
NewMockSessionRepository creates a new instance of MockSessionRepository. 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 (*MockSessionRepository) CreateSession ¶
func (_mock *MockSessionRepository) CreateSession(ctx context.Context, session *domain.Session) error
CreateSession provides a mock function for the type MockSessionRepository
func (*MockSessionRepository) DeleteExpiredSessions ¶
func (_mock *MockSessionRepository) DeleteExpiredSessions(ctx context.Context) (int64, error)
DeleteExpiredSessions provides a mock function for the type MockSessionRepository
func (*MockSessionRepository) DeleteSession ¶
func (_mock *MockSessionRepository) DeleteSession(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)
DeleteSession provides a mock function for the type MockSessionRepository
func (*MockSessionRepository) DeleteSessionsByUserID ¶
func (_mock *MockSessionRepository) DeleteSessionsByUserID(ctx context.Context, userID uuid.UUID) error
DeleteSessionsByUserID provides a mock function for the type MockSessionRepository
func (*MockSessionRepository) EXPECT ¶
func (_m *MockSessionRepository) EXPECT() *MockSessionRepository_Expecter
func (*MockSessionRepository) FindSessionByID ¶
func (_mock *MockSessionRepository) FindSessionByID(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)
FindSessionByID provides a mock function for the type MockSessionRepository
func (*MockSessionRepository) UpdateSessionExpiry ¶
func (_mock *MockSessionRepository) UpdateSessionExpiry(ctx context.Context, sessionID uuid.UUID, expiresAt time.Time) error
UpdateSessionExpiry provides a mock function for the type MockSessionRepository
type MockSessionRepository_CreateSession_Call ¶
MockSessionRepository_CreateSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSession'
func (*MockSessionRepository_CreateSession_Call) Return ¶
func (_c *MockSessionRepository_CreateSession_Call) Return(err error) *MockSessionRepository_CreateSession_Call
func (*MockSessionRepository_CreateSession_Call) Run ¶
func (_c *MockSessionRepository_CreateSession_Call) Run(run func(ctx context.Context, session *domain.Session)) *MockSessionRepository_CreateSession_Call
func (*MockSessionRepository_CreateSession_Call) RunAndReturn ¶
func (_c *MockSessionRepository_CreateSession_Call) RunAndReturn(run func(ctx context.Context, session *domain.Session) error) *MockSessionRepository_CreateSession_Call
type MockSessionRepository_DeleteExpiredSessions_Call ¶
MockSessionRepository_DeleteExpiredSessions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteExpiredSessions'
func (*MockSessionRepository_DeleteExpiredSessions_Call) Return ¶
func (_c *MockSessionRepository_DeleteExpiredSessions_Call) Return(n int64, err error) *MockSessionRepository_DeleteExpiredSessions_Call
func (*MockSessionRepository_DeleteExpiredSessions_Call) Run ¶
func (_c *MockSessionRepository_DeleteExpiredSessions_Call) Run(run func(ctx context.Context)) *MockSessionRepository_DeleteExpiredSessions_Call
func (*MockSessionRepository_DeleteExpiredSessions_Call) RunAndReturn ¶
func (_c *MockSessionRepository_DeleteExpiredSessions_Call) RunAndReturn(run func(ctx context.Context) (int64, error)) *MockSessionRepository_DeleteExpiredSessions_Call
type MockSessionRepository_DeleteSession_Call ¶
MockSessionRepository_DeleteSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSession'
func (*MockSessionRepository_DeleteSession_Call) Return ¶
func (_c *MockSessionRepository_DeleteSession_Call) Return(session *domain.Session, err error) *MockSessionRepository_DeleteSession_Call
func (*MockSessionRepository_DeleteSession_Call) Run ¶
func (_c *MockSessionRepository_DeleteSession_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *MockSessionRepository_DeleteSession_Call
func (*MockSessionRepository_DeleteSession_Call) RunAndReturn ¶
func (_c *MockSessionRepository_DeleteSession_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)) *MockSessionRepository_DeleteSession_Call
type MockSessionRepository_DeleteSessionsByUserID_Call ¶
MockSessionRepository_DeleteSessionsByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSessionsByUserID'
func (*MockSessionRepository_DeleteSessionsByUserID_Call) Return ¶
func (_c *MockSessionRepository_DeleteSessionsByUserID_Call) Return(err error) *MockSessionRepository_DeleteSessionsByUserID_Call
func (*MockSessionRepository_DeleteSessionsByUserID_Call) Run ¶
func (_c *MockSessionRepository_DeleteSessionsByUserID_Call) Run(run func(ctx context.Context, userID uuid.UUID)) *MockSessionRepository_DeleteSessionsByUserID_Call
func (*MockSessionRepository_DeleteSessionsByUserID_Call) RunAndReturn ¶
func (_c *MockSessionRepository_DeleteSessionsByUserID_Call) RunAndReturn(run func(ctx context.Context, userID uuid.UUID) error) *MockSessionRepository_DeleteSessionsByUserID_Call
type MockSessionRepository_Expecter ¶
type MockSessionRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSessionRepository_Expecter) CreateSession ¶
func (_e *MockSessionRepository_Expecter) CreateSession(ctx interface{}, session interface{}) *MockSessionRepository_CreateSession_Call
CreateSession is a helper method to define mock.On call
- ctx context.Context
- session *domain.Session
func (*MockSessionRepository_Expecter) DeleteExpiredSessions ¶
func (_e *MockSessionRepository_Expecter) DeleteExpiredSessions(ctx interface{}) *MockSessionRepository_DeleteExpiredSessions_Call
DeleteExpiredSessions is a helper method to define mock.On call
- ctx context.Context
func (*MockSessionRepository_Expecter) DeleteSession ¶
func (_e *MockSessionRepository_Expecter) DeleteSession(ctx interface{}, sessionID interface{}) *MockSessionRepository_DeleteSession_Call
DeleteSession is a helper method to define mock.On call
- ctx context.Context
- sessionID uuid.UUID
func (*MockSessionRepository_Expecter) DeleteSessionsByUserID ¶
func (_e *MockSessionRepository_Expecter) DeleteSessionsByUserID(ctx interface{}, userID interface{}) *MockSessionRepository_DeleteSessionsByUserID_Call
DeleteSessionsByUserID is a helper method to define mock.On call
- ctx context.Context
- userID uuid.UUID
func (*MockSessionRepository_Expecter) FindSessionByID ¶
func (_e *MockSessionRepository_Expecter) FindSessionByID(ctx interface{}, sessionID interface{}) *MockSessionRepository_FindSessionByID_Call
FindSessionByID is a helper method to define mock.On call
- ctx context.Context
- sessionID uuid.UUID
func (*MockSessionRepository_Expecter) UpdateSessionExpiry ¶
func (_e *MockSessionRepository_Expecter) UpdateSessionExpiry(ctx interface{}, sessionID interface{}, expiresAt interface{}) *MockSessionRepository_UpdateSessionExpiry_Call
UpdateSessionExpiry is a helper method to define mock.On call
- ctx context.Context
- sessionID uuid.UUID
- expiresAt time.Time
type MockSessionRepository_FindSessionByID_Call ¶
MockSessionRepository_FindSessionByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindSessionByID'
func (*MockSessionRepository_FindSessionByID_Call) Return ¶
func (_c *MockSessionRepository_FindSessionByID_Call) Return(session *domain.Session, err error) *MockSessionRepository_FindSessionByID_Call
func (*MockSessionRepository_FindSessionByID_Call) Run ¶
func (_c *MockSessionRepository_FindSessionByID_Call) Run(run func(ctx context.Context, sessionID uuid.UUID)) *MockSessionRepository_FindSessionByID_Call
func (*MockSessionRepository_FindSessionByID_Call) RunAndReturn ¶
func (_c *MockSessionRepository_FindSessionByID_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)) *MockSessionRepository_FindSessionByID_Call
type MockSessionRepository_UpdateSessionExpiry_Call ¶
MockSessionRepository_UpdateSessionExpiry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSessionExpiry'
func (*MockSessionRepository_UpdateSessionExpiry_Call) Return ¶
func (_c *MockSessionRepository_UpdateSessionExpiry_Call) Return(err error) *MockSessionRepository_UpdateSessionExpiry_Call
func (*MockSessionRepository_UpdateSessionExpiry_Call) Run ¶
func (_c *MockSessionRepository_UpdateSessionExpiry_Call) Run(run func(ctx context.Context, sessionID uuid.UUID, expiresAt time.Time)) *MockSessionRepository_UpdateSessionExpiry_Call
func (*MockSessionRepository_UpdateSessionExpiry_Call) RunAndReturn ¶
func (_c *MockSessionRepository_UpdateSessionExpiry_Call) RunAndReturn(run func(ctx context.Context, sessionID uuid.UUID, expiresAt time.Time) error) *MockSessionRepository_UpdateSessionExpiry_Call
type MockStorage ¶
MockStorage is an autogenerated mock type for the Storage type
func NewMockStorage ¶
func NewMockStorage(t interface {
mock.TestingT
Cleanup(func())
}) *MockStorage
NewMockStorage creates a new instance of MockStorage. 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 (*MockStorage) EXPECT ¶
func (_m *MockStorage) EXPECT() *MockStorage_Expecter
func (*MockStorage) FindByEmail ¶
func (_mock *MockStorage) FindByEmail(ctx context.Context, table string, email string, dest any) error
FindByEmail provides a mock function for the type MockStorage
func (*MockStorage) FindOneAndDelete ¶
func (_mock *MockStorage) FindOneAndDelete(ctx context.Context, table string, id any, dest any) error
FindOneAndDelete provides a mock function for the type MockStorage
func (*MockStorage) GetDB ¶
func (_mock *MockStorage) GetDB() any
GetDB provides a mock function for the type MockStorage
type MockStorage_Expecter ¶
type MockStorage_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStorage_Expecter) FindByEmail ¶
func (_e *MockStorage_Expecter) FindByEmail(ctx interface{}, table interface{}, email interface{}, dest interface{}) *MockStorage_FindByEmail_Call
FindByEmail is a helper method to define mock.On call
- ctx context.Context
- table string
- email string
- dest any
func (*MockStorage_Expecter) FindByID ¶
func (_e *MockStorage_Expecter) FindByID(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockStorage_FindByID_Call
FindByID is a helper method to define mock.On call
- ctx context.Context
- table string
- id any
- dest any
func (*MockStorage_Expecter) FindOneAndDelete ¶
func (_e *MockStorage_Expecter) FindOneAndDelete(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockStorage_FindOneAndDelete_Call
FindOneAndDelete is a helper method to define mock.On call
- ctx context.Context
- table string
- id any
- dest any
func (*MockStorage_Expecter) GetDB ¶
func (_e *MockStorage_Expecter) GetDB() *MockStorage_GetDB_Call
GetDB is a helper method to define mock.On call
func (*MockStorage_Expecter) Insert ¶
func (_e *MockStorage_Expecter) Insert(ctx interface{}, table interface{}, data interface{}) *MockStorage_Insert_Call
Insert is a helper method to define mock.On call
- ctx context.Context
- table string
- data any
func (*MockStorage_Expecter) Ping ¶
func (_e *MockStorage_Expecter) Ping(ctx interface{}) *MockStorage_Ping_Call
Ping is a helper method to define mock.On call
- ctx context.Context
func (*MockStorage_Expecter) Update ¶
func (_e *MockStorage_Expecter) Update(ctx interface{}, table interface{}, data interface{}) *MockStorage_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- table string
- data any
type MockStorage_FindByEmail_Call ¶
MockStorage_FindByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByEmail'
func (*MockStorage_FindByEmail_Call) Return ¶
func (_c *MockStorage_FindByEmail_Call) Return(err error) *MockStorage_FindByEmail_Call
func (*MockStorage_FindByEmail_Call) Run ¶
func (_c *MockStorage_FindByEmail_Call) Run(run func(ctx context.Context, table string, email string, dest any)) *MockStorage_FindByEmail_Call
func (*MockStorage_FindByEmail_Call) RunAndReturn ¶
func (_c *MockStorage_FindByEmail_Call) RunAndReturn(run func(ctx context.Context, table string, email string, dest any) error) *MockStorage_FindByEmail_Call
type MockStorage_FindByID_Call ¶
MockStorage_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'
func (*MockStorage_FindByID_Call) Return ¶
func (_c *MockStorage_FindByID_Call) Return(err error) *MockStorage_FindByID_Call
func (*MockStorage_FindByID_Call) Run ¶
func (_c *MockStorage_FindByID_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockStorage_FindByID_Call
func (*MockStorage_FindByID_Call) RunAndReturn ¶
func (_c *MockStorage_FindByID_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockStorage_FindByID_Call
type MockStorage_FindOneAndDelete_Call ¶
MockStorage_FindOneAndDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOneAndDelete'
func (*MockStorage_FindOneAndDelete_Call) Return ¶
func (_c *MockStorage_FindOneAndDelete_Call) Return(err error) *MockStorage_FindOneAndDelete_Call
func (*MockStorage_FindOneAndDelete_Call) Run ¶
func (_c *MockStorage_FindOneAndDelete_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockStorage_FindOneAndDelete_Call
func (*MockStorage_FindOneAndDelete_Call) RunAndReturn ¶
func (_c *MockStorage_FindOneAndDelete_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockStorage_FindOneAndDelete_Call
type MockStorage_GetDB_Call ¶
MockStorage_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*MockStorage_GetDB_Call) Return ¶
func (_c *MockStorage_GetDB_Call) Return(v any) *MockStorage_GetDB_Call
func (*MockStorage_GetDB_Call) Run ¶
func (_c *MockStorage_GetDB_Call) Run(run func()) *MockStorage_GetDB_Call
func (*MockStorage_GetDB_Call) RunAndReturn ¶
func (_c *MockStorage_GetDB_Call) RunAndReturn(run func() any) *MockStorage_GetDB_Call
type MockStorage_Insert_Call ¶
MockStorage_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*MockStorage_Insert_Call) Return ¶
func (_c *MockStorage_Insert_Call) Return(err error) *MockStorage_Insert_Call
func (*MockStorage_Insert_Call) Run ¶
func (_c *MockStorage_Insert_Call) Run(run func(ctx context.Context, table string, data any)) *MockStorage_Insert_Call
func (*MockStorage_Insert_Call) RunAndReturn ¶
func (_c *MockStorage_Insert_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockStorage_Insert_Call
type MockStorage_Ping_Call ¶
MockStorage_Ping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ping'
func (*MockStorage_Ping_Call) Return ¶
func (_c *MockStorage_Ping_Call) Return(err error) *MockStorage_Ping_Call
func (*MockStorage_Ping_Call) Run ¶
func (_c *MockStorage_Ping_Call) Run(run func(ctx context.Context)) *MockStorage_Ping_Call
func (*MockStorage_Ping_Call) RunAndReturn ¶
func (_c *MockStorage_Ping_Call) RunAndReturn(run func(ctx context.Context) error) *MockStorage_Ping_Call
type MockStorage_Update_Call ¶
MockStorage_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockStorage_Update_Call) Return ¶
func (_c *MockStorage_Update_Call) Return(err error) *MockStorage_Update_Call
func (*MockStorage_Update_Call) Run ¶
func (_c *MockStorage_Update_Call) Run(run func(ctx context.Context, table string, data any)) *MockStorage_Update_Call
func (*MockStorage_Update_Call) RunAndReturn ¶
func (_c *MockStorage_Update_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockStorage_Update_Call
type MockTokenProvider ¶
MockTokenProvider is an autogenerated mock type for the TokenProvider type
func NewMockTokenProvider ¶
func NewMockTokenProvider(t interface {
mock.TestingT
Cleanup(func())
}) *MockTokenProvider
NewMockTokenProvider creates a new instance of MockTokenProvider. 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 (*MockTokenProvider) EXPECT ¶
func (_m *MockTokenProvider) EXPECT() *MockTokenProvider_Expecter
func (*MockTokenProvider) GenerateAccessToken ¶
func (_mock *MockTokenProvider) GenerateAccessToken(sessionID string) (string, error)
GenerateAccessToken provides a mock function for the type MockTokenProvider
func (*MockTokenProvider) GenerateRefreshToken ¶
func (_mock *MockTokenProvider) GenerateRefreshToken(userID string, sessionID string) (string, error)
GenerateRefreshToken provides a mock function for the type MockTokenProvider
func (*MockTokenProvider) ParseAccessToken ¶
func (_mock *MockTokenProvider) ParseAccessToken(tokenString string) (*domain.AccessTokenClaims, error)
ParseAccessToken provides a mock function for the type MockTokenProvider
func (*MockTokenProvider) ParseRefreshToken ¶
func (_mock *MockTokenProvider) ParseRefreshToken(tokenString string) (*domain.RefreshTokenClaims, error)
ParseRefreshToken provides a mock function for the type MockTokenProvider
type MockTokenProvider_Expecter ¶
type MockTokenProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTokenProvider_Expecter) GenerateAccessToken ¶
func (_e *MockTokenProvider_Expecter) GenerateAccessToken(sessionID interface{}) *MockTokenProvider_GenerateAccessToken_Call
GenerateAccessToken is a helper method to define mock.On call
- sessionID string
func (*MockTokenProvider_Expecter) GenerateRefreshToken ¶
func (_e *MockTokenProvider_Expecter) GenerateRefreshToken(userID interface{}, sessionID interface{}) *MockTokenProvider_GenerateRefreshToken_Call
GenerateRefreshToken is a helper method to define mock.On call
- userID string
- sessionID string
func (*MockTokenProvider_Expecter) ParseAccessToken ¶
func (_e *MockTokenProvider_Expecter) ParseAccessToken(tokenString interface{}) *MockTokenProvider_ParseAccessToken_Call
ParseAccessToken is a helper method to define mock.On call
- tokenString string
func (*MockTokenProvider_Expecter) ParseRefreshToken ¶
func (_e *MockTokenProvider_Expecter) ParseRefreshToken(tokenString interface{}) *MockTokenProvider_ParseRefreshToken_Call
ParseRefreshToken is a helper method to define mock.On call
- tokenString string
type MockTokenProvider_GenerateAccessToken_Call ¶
MockTokenProvider_GenerateAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateAccessToken'
func (*MockTokenProvider_GenerateAccessToken_Call) Return ¶
func (_c *MockTokenProvider_GenerateAccessToken_Call) Return(s string, err error) *MockTokenProvider_GenerateAccessToken_Call
func (*MockTokenProvider_GenerateAccessToken_Call) Run ¶
func (_c *MockTokenProvider_GenerateAccessToken_Call) Run(run func(sessionID string)) *MockTokenProvider_GenerateAccessToken_Call
func (*MockTokenProvider_GenerateAccessToken_Call) RunAndReturn ¶
func (_c *MockTokenProvider_GenerateAccessToken_Call) RunAndReturn(run func(sessionID string) (string, error)) *MockTokenProvider_GenerateAccessToken_Call
type MockTokenProvider_GenerateRefreshToken_Call ¶
MockTokenProvider_GenerateRefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateRefreshToken'
func (*MockTokenProvider_GenerateRefreshToken_Call) Return ¶
func (_c *MockTokenProvider_GenerateRefreshToken_Call) Return(s string, err error) *MockTokenProvider_GenerateRefreshToken_Call
func (*MockTokenProvider_GenerateRefreshToken_Call) Run ¶
func (_c *MockTokenProvider_GenerateRefreshToken_Call) Run(run func(userID string, sessionID string)) *MockTokenProvider_GenerateRefreshToken_Call
func (*MockTokenProvider_GenerateRefreshToken_Call) RunAndReturn ¶
func (_c *MockTokenProvider_GenerateRefreshToken_Call) RunAndReturn(run func(userID string, sessionID string) (string, error)) *MockTokenProvider_GenerateRefreshToken_Call
type MockTokenProvider_ParseAccessToken_Call ¶
MockTokenProvider_ParseAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseAccessToken'
func (*MockTokenProvider_ParseAccessToken_Call) Return ¶
func (_c *MockTokenProvider_ParseAccessToken_Call) Return(accessTokenClaims *domain.AccessTokenClaims, err error) *MockTokenProvider_ParseAccessToken_Call
func (*MockTokenProvider_ParseAccessToken_Call) Run ¶
func (_c *MockTokenProvider_ParseAccessToken_Call) Run(run func(tokenString string)) *MockTokenProvider_ParseAccessToken_Call
func (*MockTokenProvider_ParseAccessToken_Call) RunAndReturn ¶
func (_c *MockTokenProvider_ParseAccessToken_Call) RunAndReturn(run func(tokenString string) (*domain.AccessTokenClaims, error)) *MockTokenProvider_ParseAccessToken_Call
type MockTokenProvider_ParseRefreshToken_Call ¶
MockTokenProvider_ParseRefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseRefreshToken'
func (*MockTokenProvider_ParseRefreshToken_Call) Return ¶
func (_c *MockTokenProvider_ParseRefreshToken_Call) Return(refreshTokenClaims *domain.RefreshTokenClaims, err error) *MockTokenProvider_ParseRefreshToken_Call
func (*MockTokenProvider_ParseRefreshToken_Call) Run ¶
func (_c *MockTokenProvider_ParseRefreshToken_Call) Run(run func(tokenString string)) *MockTokenProvider_ParseRefreshToken_Call
func (*MockTokenProvider_ParseRefreshToken_Call) RunAndReturn ¶
func (_c *MockTokenProvider_ParseRefreshToken_Call) RunAndReturn(run func(tokenString string) (*domain.RefreshTokenClaims, error)) *MockTokenProvider_ParseRefreshToken_Call
type MockWriter ¶
MockWriter is an autogenerated mock type for the Writer type
func NewMockWriter ¶
func NewMockWriter(t interface {
mock.TestingT
Cleanup(func())
}) *MockWriter
NewMockWriter creates a new instance of MockWriter. 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 (*MockWriter) EXPECT ¶
func (_m *MockWriter) EXPECT() *MockWriter_Expecter
func (*MockWriter) FindOneAndDelete ¶
func (_mock *MockWriter) FindOneAndDelete(ctx context.Context, table string, id any, dest any) error
FindOneAndDelete provides a mock function for the type MockWriter
type MockWriter_Expecter ¶
type MockWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWriter_Expecter) FindOneAndDelete ¶
func (_e *MockWriter_Expecter) FindOneAndDelete(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockWriter_FindOneAndDelete_Call
FindOneAndDelete is a helper method to define mock.On call
- ctx context.Context
- table string
- id any
- dest any
func (*MockWriter_Expecter) Insert ¶
func (_e *MockWriter_Expecter) Insert(ctx interface{}, table interface{}, data interface{}) *MockWriter_Insert_Call
Insert is a helper method to define mock.On call
- ctx context.Context
- table string
- data any
func (*MockWriter_Expecter) Update ¶
func (_e *MockWriter_Expecter) Update(ctx interface{}, table interface{}, data interface{}) *MockWriter_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- table string
- data any
type MockWriter_FindOneAndDelete_Call ¶
MockWriter_FindOneAndDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOneAndDelete'
func (*MockWriter_FindOneAndDelete_Call) Return ¶
func (_c *MockWriter_FindOneAndDelete_Call) Return(err error) *MockWriter_FindOneAndDelete_Call
func (*MockWriter_FindOneAndDelete_Call) Run ¶
func (_c *MockWriter_FindOneAndDelete_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockWriter_FindOneAndDelete_Call
func (*MockWriter_FindOneAndDelete_Call) RunAndReturn ¶
func (_c *MockWriter_FindOneAndDelete_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockWriter_FindOneAndDelete_Call
type MockWriter_Insert_Call ¶
MockWriter_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*MockWriter_Insert_Call) Return ¶
func (_c *MockWriter_Insert_Call) Return(err error) *MockWriter_Insert_Call
func (*MockWriter_Insert_Call) Run ¶
func (_c *MockWriter_Insert_Call) Run(run func(ctx context.Context, table string, data any)) *MockWriter_Insert_Call
func (*MockWriter_Insert_Call) RunAndReturn ¶
func (_c *MockWriter_Insert_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockWriter_Insert_Call
type MockWriter_Update_Call ¶
MockWriter_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockWriter_Update_Call) Return ¶
func (_c *MockWriter_Update_Call) Return(err error) *MockWriter_Update_Call
func (*MockWriter_Update_Call) Run ¶
func (_c *MockWriter_Update_Call) Run(run func(ctx context.Context, table string, data any)) *MockWriter_Update_Call
func (*MockWriter_Update_Call) RunAndReturn ¶
func (_c *MockWriter_Update_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockWriter_Update_Call