mock_infrastructures

package
v0.0.0-...-adb56df Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_infrastructures is a generated GoMock package.

Package mock_infrastructures is a generated GoMock package.

Package mock_infrastructures is a generated GoMock package.

Package mock_infrastructures is a generated GoMock package.

Package mock_infrastructures is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOAuthAdapter

type MockOAuthAdapter struct {
	// contains filtered or unexported fields
}

MockOAuthAdapter is a mock of OAuthAdapter interface.

func NewMockOAuthAdapter

func NewMockOAuthAdapter(ctrl *gomock.Controller) *MockOAuthAdapter

NewMockOAuthAdapter creates a new mock instance.

func (*MockOAuthAdapter) CreateOAuthClient

func (m *MockOAuthAdapter) CreateOAuthClient(ctx context.Context, client *entities.OauthClient, clientSecret string) (*entities.OauthClient, error)

CreateOAuthClient mocks base method.

func (*MockOAuthAdapter) DeleteClientAllAuth

func (m *MockOAuthAdapter) DeleteClientAllAuth(ctx context.Context, clientID string) error

DeleteClientAllAuth mocks base method.

func (*MockOAuthAdapter) DeleteUserAuth

func (m *MockOAuthAdapter) DeleteUserAuth(ctx context.Context, userID, clientID string) error

DeleteUserAuth mocks base method.

func (*MockOAuthAdapter) EXPECT

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

func (*MockOAuthAdapter) ExistOauthClient

func (m *MockOAuthAdapter) ExistOauthClient(ctx context.Context, id string) (bool, error)

ExistOauthClient mocks base method.

func (*MockOAuthAdapter) GetByOauthClientID

func (m *MockOAuthAdapter) GetByOauthClientID(ctx context.Context, id string) (*entities.OauthClient, error)

GetByOauthClientID mocks base method.

func (*MockOAuthAdapter) GetCode

func (m *MockOAuthAdapter) GetCode(ctx context.Context, code string) (*entities.OAuthCode, error)

GetCode mocks base method.

func (*MockOAuthAdapter) GetOAuthClientRedirectURLsByOAuthClientID

func (m *MockOAuthAdapter) GetOAuthClientRedirectURLsByOAuthClientID(ctx context.Context, oauthClientID string) (entities.OAuthClientRedirectURLList, error)

GetOAuthClientRedirectURLsByOAuthClientID mocks base method.

func (*MockOAuthAdapter) GetSession

func (m *MockOAuthAdapter) GetSession(ctx context.Context, accessToken string) (*entities.OauthSession, error)

GetSession mocks base method.

func (*MockOAuthAdapter) GetUserAuth

func (m *MockOAuthAdapter) GetUserAuth(ctx context.Context, userID, clientID string) (*entities.UserAuth, error)

GetUserAuth mocks base method.

func (*MockOAuthAdapter) GetUserAuthByRefreshToken

func (m *MockOAuthAdapter) GetUserAuthByRefreshToken(ctx context.Context, refreshToken string) (*entities.UserAuth, error)

GetUserAuthByRefreshToken mocks base method.

func (*MockOAuthAdapter) SetClientCredentialAccessToken

func (m *MockOAuthAdapter) SetClientCredentialAccessToken(ctx context.Context, clientID, accessToken string, expireAt int64) error

SetClientCredentialAccessToken mocks base method.

func (*MockOAuthAdapter) SetCode

func (m *MockOAuthAdapter) SetCode(ctx context.Context, code *entities.OAuthCode) error

SetCode mocks base method.

func (*MockOAuthAdapter) SetUserAccessToken

func (m *MockOAuthAdapter) SetUserAccessToken(ctx context.Context, clientID, userID, accessToken string, scope entities.OauthScope, expireIn int64) error

SetUserAccessToken mocks base method.

func (*MockOAuthAdapter) UpsertUserAuth

func (m *MockOAuthAdapter) UpsertUserAuth(ctx context.Context, userAuth *entities.UserAuth) (*entities.UserAuth, error)

UpsertUserAuth mocks base method.

type MockOAuthAdapterMockRecorder

type MockOAuthAdapterMockRecorder struct {
	// contains filtered or unexported fields
}

MockOAuthAdapterMockRecorder is the mock recorder for MockOAuthAdapter.

func (*MockOAuthAdapterMockRecorder) CreateOAuthClient

func (mr *MockOAuthAdapterMockRecorder) CreateOAuthClient(ctx, client, clientSecret interface{}) *gomock.Call

CreateOAuthClient indicates an expected call of CreateOAuthClient.

func (*MockOAuthAdapterMockRecorder) DeleteClientAllAuth

func (mr *MockOAuthAdapterMockRecorder) DeleteClientAllAuth(ctx, clientID interface{}) *gomock.Call

DeleteClientAllAuth indicates an expected call of DeleteClientAllAuth.

func (*MockOAuthAdapterMockRecorder) DeleteUserAuth

func (mr *MockOAuthAdapterMockRecorder) DeleteUserAuth(ctx, userID, clientID interface{}) *gomock.Call

DeleteUserAuth indicates an expected call of DeleteUserAuth.

func (*MockOAuthAdapterMockRecorder) ExistOauthClient

func (mr *MockOAuthAdapterMockRecorder) ExistOauthClient(ctx, id interface{}) *gomock.Call

ExistOauthClient indicates an expected call of ExistOauthClient.

func (*MockOAuthAdapterMockRecorder) GetByOauthClientID

func (mr *MockOAuthAdapterMockRecorder) GetByOauthClientID(ctx, id interface{}) *gomock.Call

GetByOauthClientID indicates an expected call of GetByOauthClientID.

func (*MockOAuthAdapterMockRecorder) GetCode

func (mr *MockOAuthAdapterMockRecorder) GetCode(ctx, code interface{}) *gomock.Call

GetCode indicates an expected call of GetCode.

func (*MockOAuthAdapterMockRecorder) GetOAuthClientRedirectURLsByOAuthClientID

func (mr *MockOAuthAdapterMockRecorder) GetOAuthClientRedirectURLsByOAuthClientID(ctx, oauthClientID interface{}) *gomock.Call

GetOAuthClientRedirectURLsByOAuthClientID indicates an expected call of GetOAuthClientRedirectURLsByOAuthClientID.

func (*MockOAuthAdapterMockRecorder) GetSession

func (mr *MockOAuthAdapterMockRecorder) GetSession(ctx, accessToken interface{}) *gomock.Call

GetSession indicates an expected call of GetSession.

func (*MockOAuthAdapterMockRecorder) GetUserAuth

func (mr *MockOAuthAdapterMockRecorder) GetUserAuth(ctx, userID, clientID interface{}) *gomock.Call

GetUserAuth indicates an expected call of GetUserAuth.

func (*MockOAuthAdapterMockRecorder) GetUserAuthByRefreshToken

func (mr *MockOAuthAdapterMockRecorder) GetUserAuthByRefreshToken(ctx, refreshToken interface{}) *gomock.Call

GetUserAuthByRefreshToken indicates an expected call of GetUserAuthByRefreshToken.

func (*MockOAuthAdapterMockRecorder) SetClientCredentialAccessToken

func (mr *MockOAuthAdapterMockRecorder) SetClientCredentialAccessToken(ctx, clientID, accessToken, expireAt interface{}) *gomock.Call

SetClientCredentialAccessToken indicates an expected call of SetClientCredentialAccessToken.

func (*MockOAuthAdapterMockRecorder) SetCode

func (mr *MockOAuthAdapterMockRecorder) SetCode(ctx, code interface{}) *gomock.Call

SetCode indicates an expected call of SetCode.

func (*MockOAuthAdapterMockRecorder) SetUserAccessToken

func (mr *MockOAuthAdapterMockRecorder) SetUserAccessToken(ctx, clientID, userID, accessToken, scope, expireIn interface{}) *gomock.Call

SetUserAccessToken indicates an expected call of SetUserAccessToken.

func (*MockOAuthAdapterMockRecorder) UpsertUserAuth

func (mr *MockOAuthAdapterMockRecorder) UpsertUserAuth(ctx, userAuth interface{}) *gomock.Call

UpsertUserAuth indicates an expected call of UpsertUserAuth.

type MockPhotoAdapter

type MockPhotoAdapter struct {
	// contains filtered or unexported fields
}

MockPhotoAdapter is a mock of PhotoAdapter interface.

func NewMockPhotoAdapter

func NewMockPhotoAdapter(ctrl *gomock.Controller) *MockPhotoAdapter

NewMockPhotoAdapter creates a new mock instance.

func (*MockPhotoAdapter) CountPhotos

func (m *MockPhotoAdapter) CountPhotos(ctx context.Context) (int, error)

CountPhotos mocks base method.

func (*MockPhotoAdapter) EXPECT

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

func (*MockPhotoAdapter) ExistPhotoFileByFilePath

func (m *MockPhotoAdapter) ExistPhotoFileByFilePath(ctx context.Context, filePath string) (bool, error)

ExistPhotoFileByFilePath mocks base method.

func (*MockPhotoAdapter) GetPhotoByPhotoID

func (m *MockPhotoAdapter) GetPhotoByPhotoID(ctx context.Context, photoID int) (*entities.Photo, error)

GetPhotoByPhotoID mocks base method.

func (*MockPhotoAdapter) GetPhotoFileByFilePath

func (m *MockPhotoAdapter) GetPhotoFileByFilePath(ctx context.Context, filePath string) (*entities.PhotoFile, error)

GetPhotoFileByFilePath mocks base method.

func (*MockPhotoAdapter) GetPhotoFileByPhotoFileID

func (m *MockPhotoAdapter) GetPhotoFileByPhotoFileID(ctx context.Context, photoFileID int) (*entities.PhotoFile, error)

GetPhotoFileByPhotoFileID mocks base method.

func (*MockPhotoAdapter) GetPhotoFilesByPhotoID

func (m *MockPhotoAdapter) GetPhotoFilesByPhotoID(ctx context.Context, photoID int) ([]*entities.PhotoFile, error)

GetPhotoFilesByPhotoID mocks base method.

func (*MockPhotoAdapter) GetPhotoMetaByPhotoID

func (m *MockPhotoAdapter) GetPhotoMetaByPhotoID(ctx context.Context, photoID int) (entities.PhotoMeta, error)

GetPhotoMetaByPhotoID mocks base method.

func (*MockPhotoAdapter) GetPhotoMetaItemByPhotoIDTagID

func (m *MockPhotoAdapter) GetPhotoMetaItemByPhotoIDTagID(ctx context.Context, photoID, tagID int) (*entities.PhotoMetaItem, error)

GetPhotoMetaItemByPhotoIDTagID mocks base method.

func (*MockPhotoAdapter) GetPhotos

func (m *MockPhotoAdapter) GetPhotos(ctx context.Context, limit, offset int) (entities.PhotoList, error)

GetPhotos mocks base method.

func (*MockPhotoAdapter) UpsertPhotoByFilePath

func (m *MockPhotoAdapter) UpsertPhotoByFilePath(ctx context.Context, photo *entities.Photo) (*entities.Photo, error)

UpsertPhotoByFilePath mocks base method.

func (*MockPhotoAdapter) UpsertPhotoMetaItemByPhotoTagID

func (m *MockPhotoAdapter) UpsertPhotoMetaItemByPhotoTagID(ctx context.Context, photoID int, metaItem *entities.PhotoMetaItem) (*entities.PhotoMetaItem, error)

UpsertPhotoMetaItemByPhotoTagID mocks base method.

type MockPhotoAdapterMockRecorder

type MockPhotoAdapterMockRecorder struct {
	// contains filtered or unexported fields
}

MockPhotoAdapterMockRecorder is the mock recorder for MockPhotoAdapter.

func (*MockPhotoAdapterMockRecorder) CountPhotos

func (mr *MockPhotoAdapterMockRecorder) CountPhotos(ctx interface{}) *gomock.Call

CountPhotos indicates an expected call of CountPhotos.

func (*MockPhotoAdapterMockRecorder) ExistPhotoFileByFilePath

func (mr *MockPhotoAdapterMockRecorder) ExistPhotoFileByFilePath(ctx, filePath interface{}) *gomock.Call

ExistPhotoFileByFilePath indicates an expected call of ExistPhotoFileByFilePath.

func (*MockPhotoAdapterMockRecorder) GetPhotoByPhotoID

func (mr *MockPhotoAdapterMockRecorder) GetPhotoByPhotoID(ctx, photoID interface{}) *gomock.Call

GetPhotoByPhotoID indicates an expected call of GetPhotoByPhotoID.

func (*MockPhotoAdapterMockRecorder) GetPhotoFileByFilePath

func (mr *MockPhotoAdapterMockRecorder) GetPhotoFileByFilePath(ctx, filePath interface{}) *gomock.Call

GetPhotoFileByFilePath indicates an expected call of GetPhotoFileByFilePath.

func (*MockPhotoAdapterMockRecorder) GetPhotoFileByPhotoFileID

func (mr *MockPhotoAdapterMockRecorder) GetPhotoFileByPhotoFileID(ctx, photoFileID interface{}) *gomock.Call

GetPhotoFileByPhotoFileID indicates an expected call of GetPhotoFileByPhotoFileID.

func (*MockPhotoAdapterMockRecorder) GetPhotoFilesByPhotoID

func (mr *MockPhotoAdapterMockRecorder) GetPhotoFilesByPhotoID(ctx, photoID interface{}) *gomock.Call

GetPhotoFilesByPhotoID indicates an expected call of GetPhotoFilesByPhotoID.

func (*MockPhotoAdapterMockRecorder) GetPhotoMetaByPhotoID

func (mr *MockPhotoAdapterMockRecorder) GetPhotoMetaByPhotoID(ctx, photoID interface{}) *gomock.Call

GetPhotoMetaByPhotoID indicates an expected call of GetPhotoMetaByPhotoID.

func (*MockPhotoAdapterMockRecorder) GetPhotoMetaItemByPhotoIDTagID

func (mr *MockPhotoAdapterMockRecorder) GetPhotoMetaItemByPhotoIDTagID(ctx, photoID, tagID interface{}) *gomock.Call

GetPhotoMetaItemByPhotoIDTagID indicates an expected call of GetPhotoMetaItemByPhotoIDTagID.

func (*MockPhotoAdapterMockRecorder) GetPhotos

func (mr *MockPhotoAdapterMockRecorder) GetPhotos(ctx, limit, offset interface{}) *gomock.Call

GetPhotos indicates an expected call of GetPhotos.

func (*MockPhotoAdapterMockRecorder) UpsertPhotoByFilePath

func (mr *MockPhotoAdapterMockRecorder) UpsertPhotoByFilePath(ctx, photo interface{}) *gomock.Call

UpsertPhotoByFilePath indicates an expected call of UpsertPhotoByFilePath.

func (*MockPhotoAdapterMockRecorder) UpsertPhotoMetaItemByPhotoTagID

func (mr *MockPhotoAdapterMockRecorder) UpsertPhotoMetaItemByPhotoTagID(ctx, photoID, metaItem interface{}) *gomock.Call

UpsertPhotoMetaItemByPhotoTagID indicates an expected call of UpsertPhotoMetaItemByPhotoTagID.

type MockPhotoStorageAdapter

type MockPhotoStorageAdapter struct {
	// contains filtered or unexported fields
}

MockPhotoStorageAdapter is a mock of PhotoStorageAdapter interface.

func NewMockPhotoStorageAdapter

func NewMockPhotoStorageAdapter(ctrl *gomock.Controller) *MockPhotoStorageAdapter

NewMockPhotoStorageAdapter creates a new mock instance.

func (*MockPhotoStorageAdapter) EXPECT

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

func (*MockPhotoStorageAdapter) FindDirContents

func (m *MockPhotoStorageAdapter) FindDirContents(dirPath string) ([]*entities.StorageFileInfo, error)

FindDirContents mocks base method.

func (*MockPhotoStorageAdapter) GenerateSignToSavePhoto

func (m *MockPhotoStorageAdapter) GenerateSignToSavePhoto(ctx context.Context, userID string, expireIn int64) (string, error)

GenerateSignToSavePhoto mocks base method.

func (*MockPhotoStorageAdapter) LoadContent

LoadContent mocks base method.

func (*MockPhotoStorageAdapter) ParsePhotoMeta

func (m *MockPhotoStorageAdapter) ParsePhotoMeta(path string) (entities.PhotoMeta, error)

ParsePhotoMeta mocks base method.

func (*MockPhotoStorageAdapter) SavePhotoFile

func (m *MockPhotoStorageAdapter) SavePhotoFile(ctx context.Context, userID, fileName string, dateTimeOriginal time.Time, data []byte) (*entities.StorageFileInfo, error)

SavePhotoFile mocks base method.

func (*MockPhotoStorageAdapter) SavePreview

func (m *MockPhotoStorageAdapter) SavePreview(ctx context.Context, photoID int, data []byte) error

SavePreview mocks base method.

func (*MockPhotoStorageAdapter) SaveThumbnail

func (m *MockPhotoStorageAdapter) SaveThumbnail(ctx context.Context, photoID int, data []byte) error

SaveThumbnail mocks base method.

func (*MockPhotoStorageAdapter) VerifySignToken

func (m *MockPhotoStorageAdapter) VerifySignToken(ctx context.Context, token string) (*entities.PhotoUploadInfo, error)

VerifySignToken mocks base method.

type MockPhotoStorageAdapterMockRecorder

type MockPhotoStorageAdapterMockRecorder struct {
	// contains filtered or unexported fields
}

MockPhotoStorageAdapterMockRecorder is the mock recorder for MockPhotoStorageAdapter.

func (*MockPhotoStorageAdapterMockRecorder) FindDirContents

func (mr *MockPhotoStorageAdapterMockRecorder) FindDirContents(dirPath interface{}) *gomock.Call

FindDirContents indicates an expected call of FindDirContents.

func (*MockPhotoStorageAdapterMockRecorder) GenerateSignToSavePhoto

func (mr *MockPhotoStorageAdapterMockRecorder) GenerateSignToSavePhoto(ctx, userID, expireIn interface{}) *gomock.Call

GenerateSignToSavePhoto indicates an expected call of GenerateSignToSavePhoto.

func (*MockPhotoStorageAdapterMockRecorder) LoadContent

func (mr *MockPhotoStorageAdapterMockRecorder) LoadContent(path interface{}) *gomock.Call

LoadContent indicates an expected call of LoadContent.

func (*MockPhotoStorageAdapterMockRecorder) ParsePhotoMeta

func (mr *MockPhotoStorageAdapterMockRecorder) ParsePhotoMeta(path interface{}) *gomock.Call

ParsePhotoMeta indicates an expected call of ParsePhotoMeta.

func (*MockPhotoStorageAdapterMockRecorder) SavePhotoFile

func (mr *MockPhotoStorageAdapterMockRecorder) SavePhotoFile(ctx, userID, fileName, dateTimeOriginal, data interface{}) *gomock.Call

SavePhotoFile indicates an expected call of SavePhotoFile.

func (*MockPhotoStorageAdapterMockRecorder) SavePreview

func (mr *MockPhotoStorageAdapterMockRecorder) SavePreview(ctx, photoID, data interface{}) *gomock.Call

SavePreview indicates an expected call of SavePreview.

func (*MockPhotoStorageAdapterMockRecorder) SaveThumbnail

func (mr *MockPhotoStorageAdapterMockRecorder) SaveThumbnail(ctx, photoID, data interface{}) *gomock.Call

SaveThumbnail indicates an expected call of SaveThumbnail.

func (*MockPhotoStorageAdapterMockRecorder) VerifySignToken

func (mr *MockPhotoStorageAdapterMockRecorder) VerifySignToken(ctx, token interface{}) *gomock.Call

VerifySignToken indicates an expected call of VerifySignToken.

type MockSearchAdapter

type MockSearchAdapter struct {
	// contains filtered or unexported fields
}

MockSearchAdapter is a mock of SearchAdapter interface.

func NewMockSearchAdapter

func NewMockSearchAdapter(ctrl *gomock.Controller) *MockSearchAdapter

NewMockSearchAdapter creates a new mock instance.

func (*MockSearchAdapter) AggregateByDateTimeOriginalYear

func (m *MockSearchAdapter) AggregateByDateTimeOriginalYear(ctx context.Context) (entities.PhotoDateTimeAggregation, error)

AggregateByDateTimeOriginalYear mocks base method.

func (*MockSearchAdapter) AggregateByDateTimeOriginalYearMonth

func (m *MockSearchAdapter) AggregateByDateTimeOriginalYearMonth(ctx context.Context, year int) (entities.PhotoDateTimeAggregation, error)

AggregateByDateTimeOriginalYearMonth mocks base method.

func (*MockSearchAdapter) AggregateByDateTimeOriginalYearMonthDate

func (m *MockSearchAdapter) AggregateByDateTimeOriginalYearMonthDate(ctx context.Context, year, month int) (entities.PhotoDateTimeAggregation, error)

AggregateByDateTimeOriginalYearMonthDate mocks base method.

func (*MockSearchAdapter) BulkInsertPhotos

func (m *MockSearchAdapter) BulkInsertPhotos(ctx context.Context, photos entities.PhotoList) (*esutil.BulkIndexerStats, error)

BulkInsertPhotos mocks base method.

func (*MockSearchAdapter) EXPECT

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

func (*MockSearchAdapter) InsertPhoto

func (m *MockSearchAdapter) InsertPhoto(ctx context.Context, photo *entities.Photo) error

InsertPhoto mocks base method.

func (*MockSearchAdapter) SearchPhotos

SearchPhotos mocks base method.

type MockSearchAdapterMockRecorder

type MockSearchAdapterMockRecorder struct {
	// contains filtered or unexported fields
}

MockSearchAdapterMockRecorder is the mock recorder for MockSearchAdapter.

func (*MockSearchAdapterMockRecorder) AggregateByDateTimeOriginalYear

func (mr *MockSearchAdapterMockRecorder) AggregateByDateTimeOriginalYear(ctx interface{}) *gomock.Call

AggregateByDateTimeOriginalYear indicates an expected call of AggregateByDateTimeOriginalYear.

func (*MockSearchAdapterMockRecorder) AggregateByDateTimeOriginalYearMonth

func (mr *MockSearchAdapterMockRecorder) AggregateByDateTimeOriginalYearMonth(ctx, year interface{}) *gomock.Call

AggregateByDateTimeOriginalYearMonth indicates an expected call of AggregateByDateTimeOriginalYearMonth.

func (*MockSearchAdapterMockRecorder) AggregateByDateTimeOriginalYearMonthDate

func (mr *MockSearchAdapterMockRecorder) AggregateByDateTimeOriginalYearMonthDate(ctx, year, month interface{}) *gomock.Call

AggregateByDateTimeOriginalYearMonthDate indicates an expected call of AggregateByDateTimeOriginalYearMonthDate.

func (*MockSearchAdapterMockRecorder) BulkInsertPhotos

func (mr *MockSearchAdapterMockRecorder) BulkInsertPhotos(ctx, photos interface{}) *gomock.Call

BulkInsertPhotos indicates an expected call of BulkInsertPhotos.

func (*MockSearchAdapterMockRecorder) InsertPhoto

func (mr *MockSearchAdapterMockRecorder) InsertPhoto(ctx, photo interface{}) *gomock.Call

InsertPhoto indicates an expected call of InsertPhoto.

func (*MockSearchAdapterMockRecorder) SearchPhotos

func (mr *MockSearchAdapterMockRecorder) SearchPhotos(ctx, q interface{}) *gomock.Call

SearchPhotos indicates an expected call of SearchPhotos.

type MockUserAdapter

type MockUserAdapter struct {
	// contains filtered or unexported fields
}

MockUserAdapter is a mock of UserAdapter interface.

func NewMockUserAdapter

func NewMockUserAdapter(ctrl *gomock.Controller) *MockUserAdapter

NewMockUserAdapter creates a new mock instance.

func (*MockUserAdapter) CountUsers

func (m *MockUserAdapter) CountUsers(ctx context.Context, filter *filters.UserFilter) (int, error)

CountUsers mocks base method.

func (*MockUserAdapter) CreateUser

func (m *MockUserAdapter) CreateUser(ctx context.Context, user *entities.User, password string, isInitializedPassword bool, now time.Time) (*entities.User, error)

CreateUser mocks base method.

func (*MockUserAdapter) EXPECT

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

func (*MockUserAdapter) ExistUser

func (m *MockUserAdapter) ExistUser(ctx context.Context, userID string) (bool, error)

ExistUser mocks base method.

func (*MockUserAdapter) GetUser

func (m *MockUserAdapter) GetUser(ctx context.Context, userID string) (*entities.User, error)

GetUser mocks base method.

func (*MockUserAdapter) GetUserPassword

func (m *MockUserAdapter) GetUserPassword(ctx context.Context, userID string) (*entities.UserPassword, error)

GetUserPassword mocks base method.

func (*MockUserAdapter) GetUsers

func (m *MockUserAdapter) GetUsers(ctx context.Context, filter *filters.UserFilter, limit, offset int) (entities.UserList, error)

GetUsers mocks base method.

func (*MockUserAdapter) UpdateUserProfile

func (m *MockUserAdapter) UpdateUserProfile(ctx context.Context, user *entities.User) (*entities.User, error)

UpdateUserProfile mocks base method.

type MockUserAdapterMockRecorder

type MockUserAdapterMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserAdapterMockRecorder is the mock recorder for MockUserAdapter.

func (*MockUserAdapterMockRecorder) CountUsers

func (mr *MockUserAdapterMockRecorder) CountUsers(ctx, filter interface{}) *gomock.Call

CountUsers indicates an expected call of CountUsers.

func (*MockUserAdapterMockRecorder) CreateUser

func (mr *MockUserAdapterMockRecorder) CreateUser(ctx, user, password, isInitializedPassword, now interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUserAdapterMockRecorder) ExistUser

func (mr *MockUserAdapterMockRecorder) ExistUser(ctx, userID interface{}) *gomock.Call

ExistUser indicates an expected call of ExistUser.

func (*MockUserAdapterMockRecorder) GetUser

func (mr *MockUserAdapterMockRecorder) GetUser(ctx, userID interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockUserAdapterMockRecorder) GetUserPassword

func (mr *MockUserAdapterMockRecorder) GetUserPassword(ctx, userID interface{}) *gomock.Call

GetUserPassword indicates an expected call of GetUserPassword.

func (*MockUserAdapterMockRecorder) GetUsers

func (mr *MockUserAdapterMockRecorder) GetUsers(ctx, filter, limit, offset interface{}) *gomock.Call

GetUsers indicates an expected call of GetUsers.

func (*MockUserAdapterMockRecorder) UpdateUserProfile

func (mr *MockUserAdapterMockRecorder) UpdateUserProfile(ctx, user interface{}) *gomock.Call

UpdateUserProfile indicates an expected call of UpdateUserProfile.

Directories

Path Synopsis
Package mock_dbmodels is a generated GoMock package.
Package mock_dbmodels is a generated GoMock package.
Package mock_filters is a generated GoMock package.
Package mock_filters is a generated GoMock package.
Package mock_models is a generated GoMock package.
Package mock_models is a generated GoMock package.
Package mock_repositories is a generated GoMock package.
Package mock_repositories is a generated GoMock package.

Jump to

Keyboard shortcuts

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