Versions in this module Expand all Collapse all v1 v1.1.0 Jun 26, 2026 v1.0.0 Apr 29, 2026 Changes in this version + type MockAuth struct + func NewMockAuth(ctrl *gomock.Controller) *MockAuth + func (m *MockAuth) CreateUserClaims(user model.User) jwt.Claims + func (m *MockAuth) EXPECT() *MockAuthMockRecorder + func (m *MockAuth) GenerateRefreshToken() (string, time.Time, error) + func (m *MockAuth) GenerateToken(claims jwt.Claims) (string, error) + func (m *MockAuth) GetClaimsFromToken(tokenStr string) (auth.Claims, error) + type MockAuthMockRecorder struct + func (mr *MockAuthMockRecorder) CreateUserClaims(user any) *gomock.Call + func (mr *MockAuthMockRecorder) GenerateRefreshToken() *gomock.Call + func (mr *MockAuthMockRecorder) GenerateToken(claims any) *gomock.Call + func (mr *MockAuthMockRecorder) GetClaimsFromToken(tokenStr any) *gomock.Call + type MockEmailSender struct + func NewMockEmailSender(ctrl *gomock.Controller) *MockEmailSender + func (m *MockEmailSender) EXPECT() *MockEmailSenderMockRecorder + func (m *MockEmailSender) SendEmailVerification(ctx context.Context, req resendapi.SendEmailVerificationRequest) (string, error) + type MockEmailSenderMockRecorder struct + func (mr *MockEmailSenderMockRecorder) SendEmailVerification(ctx, req any) *gomock.Call + type MockInfoAPIClient struct + func NewMockInfoAPIClient(ctrl *gomock.Controller) *MockInfoAPIClient + func (m *MockInfoAPIClient) CompanyExists(ctx context.Context, companyName string) (bool, error) + func (m *MockInfoAPIClient) EXPECT() *MockInfoAPIClientMockRecorder + type MockInfoAPIClientMockRecorder struct + func (mr *MockInfoAPIClientMockRecorder) CompanyExists(ctx, companyName any) *gomock.Call + type MockUserRepo struct + func NewMockUserRepo(ctrl *gomock.Controller) *MockUserRepo + func (m *MockUserRepo) CheckUserExists(ctx context.Context, name string, role model.Role) (bool, error) + func (m *MockUserRepo) CreateEmailUnsubscribe(ctx context.Context, unsubscribe database.EmailUnsubscribe) error + func (m *MockUserRepo) CreateEmailVerification(ctx context.Context, verification database.EmailVerification) error + func (m *MockUserRepo) CreateRefreshToken(ctx context.Context, refreshToken database.RefreshToken) error + func (m *MockUserRepo) CreateUser(ctx context.Context, user database.User) error + func (m *MockUserRepo) CreateUserOAuthLink(ctx context.Context, link database.UserOAuthLink) error + func (m *MockUserRepo) DeleteRefreshToken(ctx context.Context, token string) error + func (m *MockUserRepo) DeleteRefreshTokensByUserID(ctx context.Context, userID string) error + func (m *MockUserRepo) DeleteUser(ctx context.Context, userID string) error + func (m *MockUserRepo) EXPECT() *MockUserRepoMockRecorder + func (m *MockUserRepo) GetEmailVerificationByUserID(ctx context.Context, userID string) (database.EmailVerification, error) + func (m *MockUserRepo) GetRefreshTokenByHash(ctx context.Context, tokenHash string) (database.RefreshToken, error) + func (m *MockUserRepo) GetUserByEmail(ctx context.Context, email string) (database.User, error) + func (m *MockUserRepo) GetUserByID(ctx context.Context, userID string) (database.User, error) + func (m *MockUserRepo) GetUserByOAuthLink(ctx context.Context, provider, oauthID string) (database.User, error) + func (m *MockUserRepo) GetUserByUsername(ctx context.Context, username string) (database.User, error) + func (m *MockUserRepo) HasOAuthLink(ctx context.Context, userID string) (bool, error) + func (m *MockUserRepo) IsEmailUnsubscribed(ctx context.Context, email string) (bool, error) + func (m *MockUserRepo) RunWithTx(ctx context.Context, f func(context.Context) error) error + func (m *MockUserRepo) SetEmailVerificationMessageID(ctx context.Context, verificationID, messageID string) error + func (m *MockUserRepo) SetEmailVerificationUsed(ctx context.Context, id string, verified bool) error + func (m *MockUserRepo) SetUnsubscribeToken(ctx context.Context, id, token string) error + func (m *MockUserRepo) SetUserEmailVerified(ctx context.Context, userID string) error + func (m *MockUserRepo) UpdateUser(ctx context.Context, user database.User) error + type MockUserRepoMockRecorder struct + func (mr *MockUserRepoMockRecorder) CheckUserExists(ctx, name, role any) *gomock.Call + func (mr *MockUserRepoMockRecorder) CreateEmailUnsubscribe(ctx, unsubscribe any) *gomock.Call + func (mr *MockUserRepoMockRecorder) CreateEmailVerification(ctx, verification any) *gomock.Call + func (mr *MockUserRepoMockRecorder) CreateRefreshToken(ctx, refreshToken any) *gomock.Call + func (mr *MockUserRepoMockRecorder) CreateUser(ctx, user any) *gomock.Call + func (mr *MockUserRepoMockRecorder) CreateUserOAuthLink(ctx, link any) *gomock.Call + func (mr *MockUserRepoMockRecorder) DeleteRefreshToken(ctx, token any) *gomock.Call + func (mr *MockUserRepoMockRecorder) DeleteRefreshTokensByUserID(ctx, userID any) *gomock.Call + func (mr *MockUserRepoMockRecorder) DeleteUser(ctx, userID any) *gomock.Call + func (mr *MockUserRepoMockRecorder) GetEmailVerificationByUserID(ctx, userID any) *gomock.Call + func (mr *MockUserRepoMockRecorder) GetRefreshTokenByHash(ctx, tokenHash any) *gomock.Call + func (mr *MockUserRepoMockRecorder) GetUserByEmail(ctx, email any) *gomock.Call + func (mr *MockUserRepoMockRecorder) GetUserByID(ctx, userID any) *gomock.Call + func (mr *MockUserRepoMockRecorder) GetUserByOAuthLink(ctx, provider, oauthID any) *gomock.Call + func (mr *MockUserRepoMockRecorder) GetUserByUsername(ctx, username any) *gomock.Call + func (mr *MockUserRepoMockRecorder) HasOAuthLink(ctx, userID any) *gomock.Call + func (mr *MockUserRepoMockRecorder) IsEmailUnsubscribed(ctx, email any) *gomock.Call + func (mr *MockUserRepoMockRecorder) RunWithTx(ctx, f any) *gomock.Call + func (mr *MockUserRepoMockRecorder) SetEmailVerificationMessageID(ctx, verificationID, messageID any) *gomock.Call + func (mr *MockUserRepoMockRecorder) SetEmailVerificationUsed(ctx, id, verified any) *gomock.Call + func (mr *MockUserRepoMockRecorder) SetUnsubscribeToken(ctx, id, token any) *gomock.Call + func (mr *MockUserRepoMockRecorder) SetUserEmailVerified(ctx, userID any) *gomock.Call + func (mr *MockUserRepoMockRecorder) UpdateUser(ctx, user any) *gomock.Call