Documentation ¶
Overview ¶
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
Index ¶
- type MockRepositoryRegistry
- func (m *MockRepositoryRegistry) EXPECT() *MockRepositoryRegistryMockRecorder
- func (m *MockRepositoryRegistry) GetSwipeRepository() repository.SwipeRepository
- func (m *MockRepositoryRegistry) GetUserRepository() repository.UserRepository
- func (m *MockRepositoryRegistry) WithTransaction(ctx context.Context, fn func(mongo.SessionContext) (interface{}, error)) error
- type MockRepositoryRegistryMockRecorder
- type MockSwipeRepository
- type MockSwipeRepositoryMockRecorder
- type MockUserRepository
- func (m *MockUserRepository) CountUserRecommendation(ctx context.Context, request *domain.UserRecommendation) (int64, error)
- func (m *MockUserRepository) Create(ctx context.Context, user *domain.User) error
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) GetByID(ctx context.Context, id string) (*domain.User, error)
- func (m *MockUserRepository) GetByPhoneNumber(ctx context.Context, phoneNumber string) (*domain.User, error)
- func (m *MockUserRepository) GetByPhoneNumberOrEmail(ctx context.Context, phoneNumber, email string) (*domain.User, error)
- func (m *MockUserRepository) GetUserRecommendation(ctx context.Context, request *domain.UserRecommendation) ([]*domain.User, error)
- func (m *MockUserRepository) Update(ctx context.Context, user *domain.User) error
- type MockUserRepositoryMockRecorder
- func (mr *MockUserRepositoryMockRecorder) CountUserRecommendation(ctx, request interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) Create(ctx, user interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GetByPhoneNumber(ctx, phoneNumber interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GetByPhoneNumberOrEmail(ctx, phoneNumber, email interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GetUserRecommendation(ctx, request interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) Update(ctx, user interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepositoryRegistry ¶
type MockRepositoryRegistry struct {
// contains filtered or unexported fields
}
MockRepositoryRegistry is a mock of RepositoryRegistry interface.
func NewMockRepositoryRegistry ¶
func NewMockRepositoryRegistry(ctrl *gomock.Controller) *MockRepositoryRegistry
NewMockRepositoryRegistry creates a new mock instance.
func (*MockRepositoryRegistry) EXPECT ¶
func (m *MockRepositoryRegistry) EXPECT() *MockRepositoryRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepositoryRegistry) GetSwipeRepository ¶
func (m *MockRepositoryRegistry) GetSwipeRepository() repository.SwipeRepository
GetSwipeRepository mocks base method.
func (*MockRepositoryRegistry) GetUserRepository ¶
func (m *MockRepositoryRegistry) GetUserRepository() repository.UserRepository
GetUserRepository mocks base method.
func (*MockRepositoryRegistry) WithTransaction ¶
func (m *MockRepositoryRegistry) WithTransaction(ctx context.Context, fn func(mongo.SessionContext) (interface{}, error)) error
WithTransaction mocks base method.
type MockRepositoryRegistryMockRecorder ¶
type MockRepositoryRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryRegistryMockRecorder is the mock recorder for MockRepositoryRegistry.
func (*MockRepositoryRegistryMockRecorder) GetSwipeRepository ¶
func (mr *MockRepositoryRegistryMockRecorder) GetSwipeRepository() *gomock.Call
GetSwipeRepository indicates an expected call of GetSwipeRepository.
func (*MockRepositoryRegistryMockRecorder) GetUserRepository ¶
func (mr *MockRepositoryRegistryMockRecorder) GetUserRepository() *gomock.Call
GetUserRepository indicates an expected call of GetUserRepository.
func (*MockRepositoryRegistryMockRecorder) WithTransaction ¶
func (mr *MockRepositoryRegistryMockRecorder) WithTransaction(ctx, fn interface{}) *gomock.Call
WithTransaction indicates an expected call of WithTransaction.
type MockSwipeRepository ¶
type MockSwipeRepository struct {
// contains filtered or unexported fields
}
MockSwipeRepository is a mock of SwipeRepository interface.
func NewMockSwipeRepository ¶
func NewMockSwipeRepository(ctrl *gomock.Controller) *MockSwipeRepository
NewMockSwipeRepository creates a new mock instance.
func (*MockSwipeRepository) EXPECT ¶
func (m *MockSwipeRepository) EXPECT() *MockSwipeRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSwipeRepository) GetUserSwipe ¶
func (m *MockSwipeRepository) GetUserSwipe(ctx context.Context, request *domain.UserSwipe) ([]*domain.Swipe, error)
GetUserSwipe mocks base method.
type MockSwipeRepositoryMockRecorder ¶
type MockSwipeRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockSwipeRepositoryMockRecorder is the mock recorder for MockSwipeRepository.
func (*MockSwipeRepositoryMockRecorder) Create ¶
func (mr *MockSwipeRepositoryMockRecorder) Create(ctx, request interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockSwipeRepositoryMockRecorder) GetUserSwipe ¶
func (mr *MockSwipeRepositoryMockRecorder) GetUserSwipe(ctx, request interface{}) *gomock.Call
GetUserSwipe indicates an expected call of GetUserSwipe.
type MockUserRepository ¶
type MockUserRepository struct {
// contains filtered or unexported fields
}
MockUserRepository is a mock of UserRepository interface.
func NewMockUserRepository ¶
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository
NewMockUserRepository creates a new mock instance.
func (*MockUserRepository) CountUserRecommendation ¶
func (m *MockUserRepository) CountUserRecommendation(ctx context.Context, request *domain.UserRecommendation) (int64, error)
CountUserRecommendation mocks base method.
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepository) GetByPhoneNumber ¶
func (m *MockUserRepository) GetByPhoneNumber(ctx context.Context, phoneNumber string) (*domain.User, error)
GetByPhoneNumber mocks base method.
func (*MockUserRepository) GetByPhoneNumberOrEmail ¶
func (m *MockUserRepository) GetByPhoneNumberOrEmail(ctx context.Context, phoneNumber, email string) (*domain.User, error)
GetByPhoneNumberOrEmail mocks base method.
func (*MockUserRepository) GetUserRecommendation ¶
func (m *MockUserRepository) GetUserRecommendation(ctx context.Context, request *domain.UserRecommendation) ([]*domain.User, error)
GetUserRecommendation mocks base method.
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.
func (*MockUserRepositoryMockRecorder) CountUserRecommendation ¶
func (mr *MockUserRepositoryMockRecorder) CountUserRecommendation(ctx, request interface{}) *gomock.Call
CountUserRecommendation indicates an expected call of CountUserRecommendation.
func (*MockUserRepositoryMockRecorder) Create ¶
func (mr *MockUserRepositoryMockRecorder) Create(ctx, user interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserRepositoryMockRecorder) GetByID ¶
func (mr *MockUserRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockUserRepositoryMockRecorder) GetByPhoneNumber ¶
func (mr *MockUserRepositoryMockRecorder) GetByPhoneNumber(ctx, phoneNumber interface{}) *gomock.Call
GetByPhoneNumber indicates an expected call of GetByPhoneNumber.
func (*MockUserRepositoryMockRecorder) GetByPhoneNumberOrEmail ¶
func (mr *MockUserRepositoryMockRecorder) GetByPhoneNumberOrEmail(ctx, phoneNumber, email interface{}) *gomock.Call
GetByPhoneNumberOrEmail indicates an expected call of GetByPhoneNumberOrEmail.
func (*MockUserRepositoryMockRecorder) GetUserRecommendation ¶
func (mr *MockUserRepositoryMockRecorder) GetUserRecommendation(ctx, request interface{}) *gomock.Call
GetUserRecommendation indicates an expected call of GetUserRecommendation.
func (*MockUserRepositoryMockRecorder) Update ¶
func (mr *MockUserRepositoryMockRecorder) Update(ctx, user interface{}) *gomock.Call
Update indicates an expected call of Update.