repository

package
v0.0.0-...-d785689 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package repository is a generated GoMock package.

Package repository is a generated GoMock package.

Package repository is a generated GoMock package.

Index

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

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) Create

func (m *MockSwipeRepository) Create(ctx context.Context, request *domain.Swipe) error

Create mocks base method.

func (*MockSwipeRepository) EXPECT

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) Create

func (m *MockUserRepository) Create(ctx context.Context, user *domain.User) error

Create mocks base method.

func (*MockUserRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserRepository) GetByID

func (m *MockUserRepository) GetByID(ctx context.Context, id string) (*domain.User, error)

GetByID mocks base method.

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.

func (*MockUserRepository) Update

func (m *MockUserRepository) Update(ctx context.Context, user *domain.User) error

Update 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL