Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAuthRepository
- func (m *MockAuthRepository) AssignRolesToUser(ctx context.Context, userID string, roleIDs []string) error
- func (m *MockAuthRepository) CreateUser(ctx context.Context, user *domain.User) error
- func (m *MockAuthRepository) CreateUserToken(ctx context.Context, token *domain.UserToken) error
- func (m *MockAuthRepository) DeleteUser(ctx context.Context, id string) error
- func (m *MockAuthRepository) EXPECT() *MockAuthRepositoryMockRecorder
- func (m *MockAuthRepository) GetRoleByID(ctx context.Context, id string) (*domain.Role, error)
- func (m *MockAuthRepository) GetRolesByNames(ctx context.Context, names []string) ([]domain.Role, error)
- func (m *MockAuthRepository) GetUserByEmail(ctx context.Context, email string) (*domain.User, error)
- func (m *MockAuthRepository) GetUserByID(ctx context.Context, id string) (*domain.User, error)
- func (m *MockAuthRepository) GetUserRoles(ctx context.Context, userID string) ([]domain.Role, error)
- func (m *MockAuthRepository) GetUserTokenByIDAndToken(ctx context.Context, userID, token string) (*domain.UserToken, error)
- func (m *MockAuthRepository) InvalidateUserToken(ctx context.Context, userID, token string) error
- func (m *MockAuthRepository) InvalidateUserTokens(ctx context.Context, userID string) error
- func (m *MockAuthRepository) UpdateUser(ctx context.Context, user *domain.User) error
- type MockAuthRepositoryMockRecorder
- func (mr *MockAuthRepositoryMockRecorder) AssignRolesToUser(ctx, userID, roleIDs interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) CreateUserToken(ctx, token interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) DeleteUser(ctx, id interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) GetRoleByID(ctx, id interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) GetRolesByNames(ctx, names interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) GetUserByEmail(ctx, email interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) GetUserByID(ctx, id interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) GetUserRoles(ctx, userID interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) GetUserTokenByIDAndToken(ctx, userID, token interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) InvalidateUserToken(ctx, userID, token interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) InvalidateUserTokens(ctx, userID interface{}) *gomock.Call
- func (mr *MockAuthRepositoryMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call
- type MockAuthUsecase
- func (m *MockAuthUsecase) AssignRoles(ctx context.Context, userID string, roleNames []string) error
- func (m *MockAuthUsecase) EXPECT() *MockAuthUsecaseMockRecorder
- func (m *MockAuthUsecase) GetUserByID(ctx context.Context, id string) (*domain.User, error)
- func (m *MockAuthUsecase) GetUserRoles(ctx context.Context, userID string) ([]domain.Role, error)
- func (m *MockAuthUsecase) Login(ctx context.Context, req *domain.LoginRequest) (*domain.LoginResponse, error)
- func (m *MockAuthUsecase) Logout(ctx context.Context, userID, token string) error
- func (m *MockAuthUsecase) Register(ctx context.Context, req *domain.RegisterRequest) (*domain.RegisterResponse, error)
- func (m *MockAuthUsecase) UpdateUser(ctx context.Context, user *domain.User) error
- type MockAuthUsecaseMockRecorder
- func (mr *MockAuthUsecaseMockRecorder) AssignRoles(ctx, userID, roleNames interface{}) *gomock.Call
- func (mr *MockAuthUsecaseMockRecorder) GetUserByID(ctx, id interface{}) *gomock.Call
- func (mr *MockAuthUsecaseMockRecorder) GetUserRoles(ctx, userID interface{}) *gomock.Call
- func (mr *MockAuthUsecaseMockRecorder) Login(ctx, req interface{}) *gomock.Call
- func (mr *MockAuthUsecaseMockRecorder) Logout(ctx, userID, token interface{}) *gomock.Call
- func (mr *MockAuthUsecaseMockRecorder) Register(ctx, req interface{}) *gomock.Call
- func (mr *MockAuthUsecaseMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthRepository ¶
type MockAuthRepository struct {
// contains filtered or unexported fields
}
MockAuthRepository is a mock of AuthRepository interface.
func NewMockAuthRepository ¶
func NewMockAuthRepository(ctrl *gomock.Controller) *MockAuthRepository
NewMockAuthRepository creates a new mock instance.
func (*MockAuthRepository) AssignRolesToUser ¶
func (m *MockAuthRepository) AssignRolesToUser(ctx context.Context, userID string, roleIDs []string) error
AssignRolesToUser mocks base method.
func (*MockAuthRepository) CreateUser ¶
CreateUser mocks base method.
func (*MockAuthRepository) CreateUserToken ¶
CreateUserToken mocks base method.
func (*MockAuthRepository) DeleteUser ¶
func (m *MockAuthRepository) DeleteUser(ctx context.Context, id string) error
DeleteUser mocks base method.
func (*MockAuthRepository) EXPECT ¶
func (m *MockAuthRepository) EXPECT() *MockAuthRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthRepository) GetRoleByID ¶
GetRoleByID mocks base method.
func (*MockAuthRepository) GetRolesByNames ¶
func (m *MockAuthRepository) GetRolesByNames(ctx context.Context, names []string) ([]domain.Role, error)
GetRolesByNames mocks base method.
func (*MockAuthRepository) GetUserByEmail ¶
func (m *MockAuthRepository) GetUserByEmail(ctx context.Context, email string) (*domain.User, error)
GetUserByEmail mocks base method.
func (*MockAuthRepository) GetUserByID ¶
GetUserByID mocks base method.
func (*MockAuthRepository) GetUserRoles ¶
func (m *MockAuthRepository) GetUserRoles(ctx context.Context, userID string) ([]domain.Role, error)
GetUserRoles mocks base method.
func (*MockAuthRepository) GetUserTokenByIDAndToken ¶
func (m *MockAuthRepository) GetUserTokenByIDAndToken(ctx context.Context, userID, token string) (*domain.UserToken, error)
GetUserTokenByIDAndToken mocks base method.
func (*MockAuthRepository) InvalidateUserToken ¶
func (m *MockAuthRepository) InvalidateUserToken(ctx context.Context, userID, token string) error
InvalidateUserToken mocks base method.
func (*MockAuthRepository) InvalidateUserTokens ¶
func (m *MockAuthRepository) InvalidateUserTokens(ctx context.Context, userID string) error
InvalidateUserTokens mocks base method.
func (*MockAuthRepository) UpdateUser ¶
UpdateUser mocks base method.
type MockAuthRepositoryMockRecorder ¶
type MockAuthRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthRepositoryMockRecorder is the mock recorder for MockAuthRepository.
func (*MockAuthRepositoryMockRecorder) AssignRolesToUser ¶
func (mr *MockAuthRepositoryMockRecorder) AssignRolesToUser(ctx, userID, roleIDs interface{}) *gomock.Call
AssignRolesToUser indicates an expected call of AssignRolesToUser.
func (*MockAuthRepositoryMockRecorder) CreateUser ¶
func (mr *MockAuthRepositoryMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockAuthRepositoryMockRecorder) CreateUserToken ¶
func (mr *MockAuthRepositoryMockRecorder) CreateUserToken(ctx, token interface{}) *gomock.Call
CreateUserToken indicates an expected call of CreateUserToken.
func (*MockAuthRepositoryMockRecorder) DeleteUser ¶
func (mr *MockAuthRepositoryMockRecorder) DeleteUser(ctx, id interface{}) *gomock.Call
DeleteUser indicates an expected call of DeleteUser.
func (*MockAuthRepositoryMockRecorder) GetRoleByID ¶
func (mr *MockAuthRepositoryMockRecorder) GetRoleByID(ctx, id interface{}) *gomock.Call
GetRoleByID indicates an expected call of GetRoleByID.
func (*MockAuthRepositoryMockRecorder) GetRolesByNames ¶
func (mr *MockAuthRepositoryMockRecorder) GetRolesByNames(ctx, names interface{}) *gomock.Call
GetRolesByNames indicates an expected call of GetRolesByNames.
func (*MockAuthRepositoryMockRecorder) GetUserByEmail ¶
func (mr *MockAuthRepositoryMockRecorder) GetUserByEmail(ctx, email interface{}) *gomock.Call
GetUserByEmail indicates an expected call of GetUserByEmail.
func (*MockAuthRepositoryMockRecorder) GetUserByID ¶
func (mr *MockAuthRepositoryMockRecorder) GetUserByID(ctx, id interface{}) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockAuthRepositoryMockRecorder) GetUserRoles ¶
func (mr *MockAuthRepositoryMockRecorder) GetUserRoles(ctx, userID interface{}) *gomock.Call
GetUserRoles indicates an expected call of GetUserRoles.
func (*MockAuthRepositoryMockRecorder) GetUserTokenByIDAndToken ¶
func (mr *MockAuthRepositoryMockRecorder) GetUserTokenByIDAndToken(ctx, userID, token interface{}) *gomock.Call
GetUserTokenByIDAndToken indicates an expected call of GetUserTokenByIDAndToken.
func (*MockAuthRepositoryMockRecorder) InvalidateUserToken ¶
func (mr *MockAuthRepositoryMockRecorder) InvalidateUserToken(ctx, userID, token interface{}) *gomock.Call
InvalidateUserToken indicates an expected call of InvalidateUserToken.
func (*MockAuthRepositoryMockRecorder) InvalidateUserTokens ¶
func (mr *MockAuthRepositoryMockRecorder) InvalidateUserTokens(ctx, userID interface{}) *gomock.Call
InvalidateUserTokens indicates an expected call of InvalidateUserTokens.
func (*MockAuthRepositoryMockRecorder) UpdateUser ¶
func (mr *MockAuthRepositoryMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.
type MockAuthUsecase ¶
type MockAuthUsecase struct {
// contains filtered or unexported fields
}
MockAuthUsecase is a mock of AuthUsecase interface.
func NewMockAuthUsecase ¶
func NewMockAuthUsecase(ctrl *gomock.Controller) *MockAuthUsecase
NewMockAuthUsecase creates a new mock instance.
func (*MockAuthUsecase) AssignRoles ¶
AssignRoles mocks base method.
func (*MockAuthUsecase) EXPECT ¶
func (m *MockAuthUsecase) EXPECT() *MockAuthUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthUsecase) GetUserByID ¶
GetUserByID mocks base method.
func (*MockAuthUsecase) GetUserRoles ¶
GetUserRoles mocks base method.
func (*MockAuthUsecase) Login ¶
func (m *MockAuthUsecase) Login(ctx context.Context, req *domain.LoginRequest) (*domain.LoginResponse, error)
Login mocks base method.
func (*MockAuthUsecase) Logout ¶
func (m *MockAuthUsecase) Logout(ctx context.Context, userID, token string) error
Logout mocks base method.
func (*MockAuthUsecase) Register ¶
func (m *MockAuthUsecase) Register(ctx context.Context, req *domain.RegisterRequest) (*domain.RegisterResponse, error)
Register mocks base method.
func (*MockAuthUsecase) UpdateUser ¶
UpdateUser mocks base method.
type MockAuthUsecaseMockRecorder ¶
type MockAuthUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthUsecaseMockRecorder is the mock recorder for MockAuthUsecase.
func (*MockAuthUsecaseMockRecorder) AssignRoles ¶
func (mr *MockAuthUsecaseMockRecorder) AssignRoles(ctx, userID, roleNames interface{}) *gomock.Call
AssignRoles indicates an expected call of AssignRoles.
func (*MockAuthUsecaseMockRecorder) GetUserByID ¶
func (mr *MockAuthUsecaseMockRecorder) GetUserByID(ctx, id interface{}) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockAuthUsecaseMockRecorder) GetUserRoles ¶
func (mr *MockAuthUsecaseMockRecorder) GetUserRoles(ctx, userID interface{}) *gomock.Call
GetUserRoles indicates an expected call of GetUserRoles.
func (*MockAuthUsecaseMockRecorder) Login ¶
func (mr *MockAuthUsecaseMockRecorder) Login(ctx, req interface{}) *gomock.Call
Login indicates an expected call of Login.
func (*MockAuthUsecaseMockRecorder) Logout ¶
func (mr *MockAuthUsecaseMockRecorder) Logout(ctx, userID, token interface{}) *gomock.Call
Logout indicates an expected call of Logout.
func (*MockAuthUsecaseMockRecorder) Register ¶
func (mr *MockAuthUsecaseMockRecorder) Register(ctx, req interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockAuthUsecaseMockRecorder) UpdateUser ¶
func (mr *MockAuthUsecaseMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.