mock_repositories

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: 10 Imported by: 0

Documentation

Overview

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Package mock_repositories is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockElasticSearchRepository

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

MockElasticSearchRepository is a mock of ElasticSearchRepository interface.

func NewMockElasticSearchRepository

func NewMockElasticSearchRepository(ctrl *gomock.Controller) *MockElasticSearchRepository

NewMockElasticSearchRepository creates a new mock instance.

func (*MockElasticSearchRepository) AggregateByDateTimeOriginalYear

func (m *MockElasticSearchRepository) AggregateByDateTimeOriginalYear(ctx context.Context) ([]*models.PhotoDateHistogram, error)

AggregateByDateTimeOriginalYear mocks base method.

func (*MockElasticSearchRepository) AggregateByDateTimeOriginalYearMonth

func (m *MockElasticSearchRepository) AggregateByDateTimeOriginalYearMonth(ctx context.Context, year int) ([]*models.PhotoDateHistogram, error)

AggregateByDateTimeOriginalYearMonth mocks base method.

func (*MockElasticSearchRepository) AggregateByDateTimeOriginalYearMonthDate

func (m *MockElasticSearchRepository) AggregateByDateTimeOriginalYearMonthDate(ctx context.Context, year, month int) ([]*models.PhotoDateHistogram, error)

AggregateByDateTimeOriginalYearMonthDate mocks base method.

func (*MockElasticSearchRepository) BulkInsertPhotos

func (m *MockElasticSearchRepository) BulkInsertPhotos(ctx context.Context, photos []*models.PhotoIndex) (*esutil.BulkIndexerStats, error)

BulkInsertPhotos mocks base method.

func (*MockElasticSearchRepository) EXPECT

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

func (*MockElasticSearchRepository) InsertPhoto

func (m *MockElasticSearchRepository) InsertPhoto(ctx context.Context, photo *models.PhotoIndex) error

InsertPhoto mocks base method.

func (*MockElasticSearchRepository) SearchPhotos

SearchPhotos mocks base method.

type MockElasticSearchRepositoryMockRecorder

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

MockElasticSearchRepositoryMockRecorder is the mock recorder for MockElasticSearchRepository.

func (*MockElasticSearchRepositoryMockRecorder) AggregateByDateTimeOriginalYear

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

AggregateByDateTimeOriginalYear indicates an expected call of AggregateByDateTimeOriginalYear.

func (*MockElasticSearchRepositoryMockRecorder) AggregateByDateTimeOriginalYearMonth

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

AggregateByDateTimeOriginalYearMonth indicates an expected call of AggregateByDateTimeOriginalYearMonth.

func (*MockElasticSearchRepositoryMockRecorder) AggregateByDateTimeOriginalYearMonthDate

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

AggregateByDateTimeOriginalYearMonthDate indicates an expected call of AggregateByDateTimeOriginalYearMonthDate.

func (*MockElasticSearchRepositoryMockRecorder) BulkInsertPhotos

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

BulkInsertPhotos indicates an expected call of BulkInsertPhotos.

func (*MockElasticSearchRepositoryMockRecorder) InsertPhoto

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

InsertPhoto indicates an expected call of InsertPhoto.

func (*MockElasticSearchRepositoryMockRecorder) SearchPhotos

func (mr *MockElasticSearchRepositoryMockRecorder) SearchPhotos(ctx, query interface{}) *gomock.Call

SearchPhotos indicates an expected call of SearchPhotos.

type MockExifRepository

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

MockExifRepository is a mock of ExifRepository interface.

func NewMockExifRepository

func NewMockExifRepository(ctrl *gomock.Controller) *MockExifRepository

NewMockExifRepository creates a new mock instance.

func (*MockExifRepository) EXPECT

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

func (*MockExifRepository) GetPhotoMetaDataByPhotoID

func (m *MockExifRepository) GetPhotoMetaDataByPhotoID(ctx context.Context, photoID int) (dbmodels.ExifSlice, error)

GetPhotoMetaDataByPhotoID mocks base method.

func (*MockExifRepository) GetPhotoMetaItemByTagID

func (m *MockExifRepository) GetPhotoMetaItemByTagID(ctx context.Context, photoID, tagID int) (*dbmodels.Exif, error)

GetPhotoMetaItemByTagID mocks base method.

func (*MockExifRepository) GetPhotoMetaItemsByPhotoIDsTagID

func (m *MockExifRepository) GetPhotoMetaItemsByPhotoIDsTagID(ctx context.Context, photoIDs []int, tagID int) (dbmodels.ExifSlice, error)

GetPhotoMetaItemsByPhotoIDsTagID mocks base method.

func (*MockExifRepository) InsertPhotoMetaItem

func (m *MockExifRepository) InsertPhotoMetaItem(ctx context.Context, exif *dbmodels.Exif) (*dbmodels.Exif, error)

InsertPhotoMetaItem mocks base method.

func (*MockExifRepository) UpdatePhotoMetaItem

func (m *MockExifRepository) UpdatePhotoMetaItem(ctx context.Context, exif *dbmodels.Exif) (*dbmodels.Exif, error)

UpdatePhotoMetaItem mocks base method.

type MockExifRepositoryMockRecorder

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

MockExifRepositoryMockRecorder is the mock recorder for MockExifRepository.

func (*MockExifRepositoryMockRecorder) GetPhotoMetaDataByPhotoID

func (mr *MockExifRepositoryMockRecorder) GetPhotoMetaDataByPhotoID(ctx, photoID interface{}) *gomock.Call

GetPhotoMetaDataByPhotoID indicates an expected call of GetPhotoMetaDataByPhotoID.

func (*MockExifRepositoryMockRecorder) GetPhotoMetaItemByTagID

func (mr *MockExifRepositoryMockRecorder) GetPhotoMetaItemByTagID(ctx, photoID, tagID interface{}) *gomock.Call

GetPhotoMetaItemByTagID indicates an expected call of GetPhotoMetaItemByTagID.

func (*MockExifRepositoryMockRecorder) GetPhotoMetaItemsByPhotoIDsTagID

func (mr *MockExifRepositoryMockRecorder) GetPhotoMetaItemsByPhotoIDsTagID(ctx, photoIDs, tagID interface{}) *gomock.Call

GetPhotoMetaItemsByPhotoIDsTagID indicates an expected call of GetPhotoMetaItemsByPhotoIDsTagID.

func (*MockExifRepositoryMockRecorder) InsertPhotoMetaItem

func (mr *MockExifRepositoryMockRecorder) InsertPhotoMetaItem(ctx, exif interface{}) *gomock.Call

InsertPhotoMetaItem indicates an expected call of InsertPhotoMetaItem.

func (*MockExifRepositoryMockRecorder) UpdatePhotoMetaItem

func (mr *MockExifRepositoryMockRecorder) UpdatePhotoMetaItem(ctx, exif interface{}) *gomock.Call

UpdatePhotoMetaItem indicates an expected call of UpdatePhotoMetaItem.

type MockOAuthClientRedirectURLRepository

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

MockOAuthClientRedirectURLRepository is a mock of OAuthClientRedirectURLRepository interface.

func NewMockOAuthClientRedirectURLRepository

func NewMockOAuthClientRedirectURLRepository(ctrl *gomock.Controller) *MockOAuthClientRedirectURLRepository

NewMockOAuthClientRedirectURLRepository creates a new mock instance.

func (*MockOAuthClientRedirectURLRepository) CreateOAuthClientRedirectURL

CreateOAuthClientRedirectURL mocks base method.

func (*MockOAuthClientRedirectURLRepository) EXPECT

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

func (*MockOAuthClientRedirectURLRepository) GetOAuthClientRedirectURLsByOAuthClientID

func (m *MockOAuthClientRedirectURLRepository) GetOAuthClientRedirectURLsByOAuthClientID(ctx context.Context, oauthClientID string) ([]*dbmodels.OauthClientRedirectURL, error)

GetOAuthClientRedirectURLsByOAuthClientID mocks base method.

type MockOAuthClientRedirectURLRepositoryMockRecorder

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

MockOAuthClientRedirectURLRepositoryMockRecorder is the mock recorder for MockOAuthClientRedirectURLRepository.

func (*MockOAuthClientRedirectURLRepositoryMockRecorder) CreateOAuthClientRedirectURL

func (mr *MockOAuthClientRedirectURLRepositoryMockRecorder) CreateOAuthClientRedirectURL(ctx, url interface{}) *gomock.Call

CreateOAuthClientRedirectURL indicates an expected call of CreateOAuthClientRedirectURL.

func (*MockOAuthClientRedirectURLRepositoryMockRecorder) GetOAuthClientRedirectURLsByOAuthClientID

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

GetOAuthClientRedirectURLsByOAuthClientID indicates an expected call of GetOAuthClientRedirectURLsByOAuthClientID.

type MockOAuthClientRepository

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

MockOAuthClientRepository is a mock of OAuthClientRepository interface.

func NewMockOAuthClientRepository

func NewMockOAuthClientRepository(ctrl *gomock.Controller) *MockOAuthClientRepository

NewMockOAuthClientRepository creates a new mock instance.

func (*MockOAuthClientRepository) CreateOAuthClient

CreateOAuthClient mocks base method.

func (*MockOAuthClientRepository) EXPECT

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

func (*MockOAuthClientRepository) ExistOauthClient

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

ExistOauthClient mocks base method.

func (*MockOAuthClientRepository) GetByOauthClientID

func (m *MockOAuthClientRepository) GetByOauthClientID(ctx context.Context, id string) (*dbmodels.OauthClient, error)

GetByOauthClientID mocks base method.

type MockOAuthClientRepositoryMockRecorder

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

MockOAuthClientRepositoryMockRecorder is the mock recorder for MockOAuthClientRepository.

func (*MockOAuthClientRepositoryMockRecorder) CreateOAuthClient

func (mr *MockOAuthClientRepositoryMockRecorder) CreateOAuthClient(ctx, client, redirectURLs interface{}) *gomock.Call

CreateOAuthClient indicates an expected call of CreateOAuthClient.

func (*MockOAuthClientRepositoryMockRecorder) ExistOauthClient

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

ExistOauthClient indicates an expected call of ExistOauthClient.

func (*MockOAuthClientRepositoryMockRecorder) GetByOauthClientID

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

GetByOauthClientID indicates an expected call of GetByOauthClientID.

type MockOauthAccessTokenRepository

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

MockOauthAccessTokenRepository is a mock of OauthAccessTokenRepository interface.

func NewMockOauthAccessTokenRepository

func NewMockOauthAccessTokenRepository(ctrl *gomock.Controller) *MockOauthAccessTokenRepository

NewMockOauthAccessTokenRepository creates a new mock instance.

func (*MockOauthAccessTokenRepository) EXPECT

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

func (*MockOauthAccessTokenRepository) GetSession

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

GetSession mocks base method.

func (*MockOauthAccessTokenRepository) SetAccessToken

func (m *MockOauthAccessTokenRepository) SetAccessToken(ctx context.Context, oauthAccessToken *models.OauthAccessToken, accessToken string, expireIn int64) error

SetAccessToken mocks base method.

type MockOauthAccessTokenRepositoryMockRecorder

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

MockOauthAccessTokenRepositoryMockRecorder is the mock recorder for MockOauthAccessTokenRepository.

func (*MockOauthAccessTokenRepositoryMockRecorder) GetSession

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

GetSession indicates an expected call of GetSession.

func (*MockOauthAccessTokenRepositoryMockRecorder) SetAccessToken

func (mr *MockOauthAccessTokenRepositoryMockRecorder) SetAccessToken(ctx, oauthAccessToken, accessToken, expireIn interface{}) *gomock.Call

SetAccessToken indicates an expected call of SetAccessToken.

type MockOauthCodeRepository

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

MockOauthCodeRepository is a mock of OauthCodeRepository interface.

func NewMockOauthCodeRepository

func NewMockOauthCodeRepository(ctrl *gomock.Controller) *MockOauthCodeRepository

NewMockOauthCodeRepository creates a new mock instance.

func (*MockOauthCodeRepository) EXPECT

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

func (*MockOauthCodeRepository) GetCode

GetCode mocks base method.

func (*MockOauthCodeRepository) SetCode

func (m_2 *MockOauthCodeRepository) SetCode(ctx context.Context, code string, m *models.OauthCode) error

SetCode mocks base method.

type MockOauthCodeRepositoryMockRecorder

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

MockOauthCodeRepositoryMockRecorder is the mock recorder for MockOauthCodeRepository.

func (*MockOauthCodeRepositoryMockRecorder) GetCode

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

GetCode indicates an expected call of GetCode.

func (*MockOauthCodeRepositoryMockRecorder) SetCode

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

SetCode indicates an expected call of SetCode.

type MockPhotoFileRepository

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

MockPhotoFileRepository is a mock of PhotoFileRepository interface.

func NewMockPhotoFileRepository

func NewMockPhotoFileRepository(ctrl *gomock.Controller) *MockPhotoFileRepository

NewMockPhotoFileRepository creates a new mock instance.

func (*MockPhotoFileRepository) EXPECT

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

func (*MockPhotoFileRepository) ExistPhotoFileByFilePath

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

ExistPhotoFileByFilePath mocks base method.

func (*MockPhotoFileRepository) GetPhotoFileByFilePath

func (m *MockPhotoFileRepository) GetPhotoFileByFilePath(ctx context.Context, filePath string) (*dbmodels.PhotoFile, error)

GetPhotoFileByFilePath mocks base method.

func (*MockPhotoFileRepository) GetPhotoFileByPhotoFileID

func (m *MockPhotoFileRepository) GetPhotoFileByPhotoFileID(ctx context.Context, photoFileID int) (*dbmodels.PhotoFile, error)

GetPhotoFileByPhotoFileID mocks base method.

func (*MockPhotoFileRepository) GetPhotoFilesByPhotoID

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

GetPhotoFilesByPhotoID mocks base method.

func (*MockPhotoFileRepository) GetPhotoFilesByPhotoIDs

func (m *MockPhotoFileRepository) GetPhotoFilesByPhotoIDs(ctx context.Context, photoIDs []int) ([]*dbmodels.PhotoFile, error)

GetPhotoFilesByPhotoIDs mocks base method.

func (*MockPhotoFileRepository) InsertPhotoFile

func (m *MockPhotoFileRepository) InsertPhotoFile(ctx context.Context, photoFile *dbmodels.PhotoFile) (*dbmodels.PhotoFile, error)

InsertPhotoFile mocks base method.

func (*MockPhotoFileRepository) UpdatePhotoFile

func (m *MockPhotoFileRepository) UpdatePhotoFile(ctx context.Context, photoFile *dbmodels.PhotoFile) (*dbmodels.PhotoFile, error)

UpdatePhotoFile mocks base method.

type MockPhotoFileRepositoryMockRecorder

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

MockPhotoFileRepositoryMockRecorder is the mock recorder for MockPhotoFileRepository.

func (*MockPhotoFileRepositoryMockRecorder) ExistPhotoFileByFilePath

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

ExistPhotoFileByFilePath indicates an expected call of ExistPhotoFileByFilePath.

func (*MockPhotoFileRepositoryMockRecorder) GetPhotoFileByFilePath

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

GetPhotoFileByFilePath indicates an expected call of GetPhotoFileByFilePath.

func (*MockPhotoFileRepositoryMockRecorder) GetPhotoFileByPhotoFileID

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

GetPhotoFileByPhotoFileID indicates an expected call of GetPhotoFileByPhotoFileID.

func (*MockPhotoFileRepositoryMockRecorder) GetPhotoFilesByPhotoID

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

GetPhotoFilesByPhotoID indicates an expected call of GetPhotoFilesByPhotoID.

func (*MockPhotoFileRepositoryMockRecorder) GetPhotoFilesByPhotoIDs

func (mr *MockPhotoFileRepositoryMockRecorder) GetPhotoFilesByPhotoIDs(ctx, photoIDs interface{}) *gomock.Call

GetPhotoFilesByPhotoIDs indicates an expected call of GetPhotoFilesByPhotoIDs.

func (*MockPhotoFileRepositoryMockRecorder) InsertPhotoFile

func (mr *MockPhotoFileRepositoryMockRecorder) InsertPhotoFile(ctx, photoFile interface{}) *gomock.Call

InsertPhotoFile indicates an expected call of InsertPhotoFile.

func (*MockPhotoFileRepositoryMockRecorder) UpdatePhotoFile

func (mr *MockPhotoFileRepositoryMockRecorder) UpdatePhotoFile(ctx, photoFile interface{}) *gomock.Call

UpdatePhotoFile indicates an expected call of UpdatePhotoFile.

type MockPhotoRepository

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

MockPhotoRepository is a mock of PhotoRepository interface.

func NewMockPhotoRepository

func NewMockPhotoRepository(ctrl *gomock.Controller) *MockPhotoRepository

NewMockPhotoRepository creates a new mock instance.

func (*MockPhotoRepository) CountPhotos

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

CountPhotos mocks base method.

func (*MockPhotoRepository) EXPECT

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

func (*MockPhotoRepository) GetPhoto

func (m *MockPhotoRepository) GetPhoto(ctx context.Context, photoID int) (*dbmodels.Photo, error)

GetPhoto mocks base method.

func (*MockPhotoRepository) GetPhotoByFilePath

func (m *MockPhotoRepository) GetPhotoByFilePath(ctx context.Context, fileHash string) (*dbmodels.Photo, error)

GetPhotoByFilePath mocks base method.

func (*MockPhotoRepository) GetPhotos

func (m *MockPhotoRepository) GetPhotos(ctx context.Context, limit, offset int) ([]*dbmodels.Photo, error)

GetPhotos mocks base method.

func (*MockPhotoRepository) InsertPhoto

func (m *MockPhotoRepository) InsertPhoto(ctx context.Context, photo *dbmodels.Photo) (*dbmodels.Photo, error)

InsertPhoto mocks base method.

func (*MockPhotoRepository) UpdatePhoto

func (m *MockPhotoRepository) UpdatePhoto(ctx context.Context, photo *dbmodels.Photo) (*dbmodels.Photo, error)

UpdatePhoto mocks base method.

type MockPhotoRepositoryMockRecorder

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

MockPhotoRepositoryMockRecorder is the mock recorder for MockPhotoRepository.

func (*MockPhotoRepositoryMockRecorder) CountPhotos

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

CountPhotos indicates an expected call of CountPhotos.

func (*MockPhotoRepositoryMockRecorder) GetPhoto

func (mr *MockPhotoRepositoryMockRecorder) GetPhoto(ctx, photoID interface{}) *gomock.Call

GetPhoto indicates an expected call of GetPhoto.

func (*MockPhotoRepositoryMockRecorder) GetPhotoByFilePath

func (mr *MockPhotoRepositoryMockRecorder) GetPhotoByFilePath(ctx, fileHash interface{}) *gomock.Call

GetPhotoByFilePath indicates an expected call of GetPhotoByFilePath.

func (*MockPhotoRepositoryMockRecorder) GetPhotos

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

GetPhotos indicates an expected call of GetPhotos.

func (*MockPhotoRepositoryMockRecorder) InsertPhoto

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

InsertPhoto indicates an expected call of InsertPhoto.

func (*MockPhotoRepositoryMockRecorder) UpdatePhoto

func (mr *MockPhotoRepositoryMockRecorder) UpdatePhoto(ctx, photo interface{}) *gomock.Call

UpdatePhoto indicates an expected call of UpdatePhoto.

type MockPhotoStorageRepository

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

MockPhotoStorageRepository is a mock of PhotoStorageRepository interface.

func NewMockPhotoStorageRepository

func NewMockPhotoStorageRepository(ctrl *gomock.Controller) *MockPhotoStorageRepository

NewMockPhotoStorageRepository creates a new mock instance.

func (*MockPhotoStorageRepository) CreateUserDir

func (m *MockPhotoStorageRepository) CreateUserDir(userID string) error

CreateUserDir mocks base method.

func (*MockPhotoStorageRepository) EXPECT

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

func (*MockPhotoStorageRepository) LoadContent

func (m *MockPhotoStorageRepository) LoadContent(path string) ([]byte, error)

LoadContent mocks base method.

func (*MockPhotoStorageRepository) ParsePhotoMetaFromFile

func (m *MockPhotoStorageRepository) ParsePhotoMetaFromFile(path string) ([]models.IfdEntry, error)

ParsePhotoMetaFromFile mocks base method.

func (*MockPhotoStorageRepository) ReadDir

func (m *MockPhotoStorageRepository) ReadDir(dirPath string) ([]os.FileInfo, error)

ReadDir mocks base method.

func (*MockPhotoStorageRepository) SaveContent

func (m *MockPhotoStorageRepository) SaveContent(userID, fileName string, dateTimeOriginal time.Time, data []byte) (os.FileInfo, string, error)

SaveContent mocks base method.

type MockPhotoStorageRepositoryMockRecorder

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

MockPhotoStorageRepositoryMockRecorder is the mock recorder for MockPhotoStorageRepository.

func (*MockPhotoStorageRepositoryMockRecorder) CreateUserDir

func (mr *MockPhotoStorageRepositoryMockRecorder) CreateUserDir(userID interface{}) *gomock.Call

CreateUserDir indicates an expected call of CreateUserDir.

func (*MockPhotoStorageRepositoryMockRecorder) LoadContent

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

LoadContent indicates an expected call of LoadContent.

func (*MockPhotoStorageRepositoryMockRecorder) ParsePhotoMetaFromFile

func (mr *MockPhotoStorageRepositoryMockRecorder) ParsePhotoMetaFromFile(path interface{}) *gomock.Call

ParsePhotoMetaFromFile indicates an expected call of ParsePhotoMetaFromFile.

func (*MockPhotoStorageRepositoryMockRecorder) ReadDir

func (mr *MockPhotoStorageRepositoryMockRecorder) ReadDir(dirPath interface{}) *gomock.Call

ReadDir indicates an expected call of ReadDir.

func (*MockPhotoStorageRepositoryMockRecorder) SaveContent

func (mr *MockPhotoStorageRepositoryMockRecorder) SaveContent(userID, fileName, dateTimeOriginal, data interface{}) *gomock.Call

SaveContent indicates an expected call of SaveContent.

type MockPhotoThumbnailRepository

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

MockPhotoThumbnailRepository is a mock of PhotoThumbnailRepository interface.

func NewMockPhotoThumbnailRepository

func NewMockPhotoThumbnailRepository(ctrl *gomock.Controller) *MockPhotoThumbnailRepository

NewMockPhotoThumbnailRepository creates a new mock instance.

func (*MockPhotoThumbnailRepository) EXPECT

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

func (*MockPhotoThumbnailRepository) SavePreview

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

SavePreview mocks base method.

func (*MockPhotoThumbnailRepository) SaveThumbnail

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

SaveThumbnail mocks base method.

type MockPhotoThumbnailRepositoryMockRecorder

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

MockPhotoThumbnailRepositoryMockRecorder is the mock recorder for MockPhotoThumbnailRepository.

func (*MockPhotoThumbnailRepositoryMockRecorder) SavePreview

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

SavePreview indicates an expected call of SavePreview.

func (*MockPhotoThumbnailRepositoryMockRecorder) SaveThumbnail

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

SaveThumbnail indicates an expected call of SaveThumbnail.

type MockPhotoUploadSignRepository

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

MockPhotoUploadSignRepository is a mock of PhotoUploadSignRepository interface.

func NewMockPhotoUploadSignRepository

func NewMockPhotoUploadSignRepository(ctrl *gomock.Controller) *MockPhotoUploadSignRepository

NewMockPhotoUploadSignRepository creates a new mock instance.

func (*MockPhotoUploadSignRepository) EXPECT

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

func (*MockPhotoUploadSignRepository) GetSign

GetSign mocks base method.

func (*MockPhotoUploadSignRepository) SetSignToken

func (m *MockPhotoUploadSignRepository) SetSignToken(ctx context.Context, token, userID string, expireIn int64) error

SetSignToken mocks base method.

type MockPhotoUploadSignRepositoryMockRecorder

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

MockPhotoUploadSignRepositoryMockRecorder is the mock recorder for MockPhotoUploadSignRepository.

func (*MockPhotoUploadSignRepositoryMockRecorder) GetSign

func (mr *MockPhotoUploadSignRepositoryMockRecorder) GetSign(ctx, token interface{}) *gomock.Call

GetSign indicates an expected call of GetSign.

func (*MockPhotoUploadSignRepositoryMockRecorder) SetSignToken

func (mr *MockPhotoUploadSignRepositoryMockRecorder) SetSignToken(ctx, token, userID, expireIn interface{}) *gomock.Call

SetSignToken indicates an expected call of SetSignToken.

type MockUserAuthRepository

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

MockUserAuthRepository is a mock of UserAuthRepository interface.

func NewMockUserAuthRepository

func NewMockUserAuthRepository(ctrl *gomock.Controller) *MockUserAuthRepository

NewMockUserAuthRepository creates a new mock instance.

func (*MockUserAuthRepository) DeleteClientAllAuth

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

DeleteClientAllAuth mocks base method.

func (*MockUserAuthRepository) DeleteUserAuth

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

DeleteUserAuth mocks base method.

func (*MockUserAuthRepository) EXPECT

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

func (*MockUserAuthRepository) GetUserAuth

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

GetUserAuth mocks base method.

func (*MockUserAuthRepository) GetUserAuthByRefreshToken

func (m *MockUserAuthRepository) GetUserAuthByRefreshToken(ctx context.Context, refreshToken string) (*dbmodels.UserAuth, error)

GetUserAuthByRefreshToken mocks base method.

func (*MockUserAuthRepository) UpsertUserAuth

func (m_2 *MockUserAuthRepository) UpsertUserAuth(ctx context.Context, m *dbmodels.UserAuth, refreshTokenRaw string) (*dbmodels.UserAuth, error)

UpsertUserAuth mocks base method.

type MockUserAuthRepositoryMockRecorder

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

MockUserAuthRepositoryMockRecorder is the mock recorder for MockUserAuthRepository.

func (*MockUserAuthRepositoryMockRecorder) DeleteClientAllAuth

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

DeleteClientAllAuth indicates an expected call of DeleteClientAllAuth.

func (*MockUserAuthRepositoryMockRecorder) DeleteUserAuth

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

DeleteUserAuth indicates an expected call of DeleteUserAuth.

func (*MockUserAuthRepositoryMockRecorder) GetUserAuth

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

GetUserAuth indicates an expected call of GetUserAuth.

func (*MockUserAuthRepositoryMockRecorder) GetUserAuthByRefreshToken

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

GetUserAuthByRefreshToken indicates an expected call of GetUserAuthByRefreshToken.

func (*MockUserAuthRepositoryMockRecorder) UpsertUserAuth

func (mr *MockUserAuthRepositoryMockRecorder) UpsertUserAuth(ctx, m, refreshTokenRaw interface{}) *gomock.Call

UpsertUserAuth indicates an expected call of UpsertUserAuth.

type MockUserPasswordRepository

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

MockUserPasswordRepository is a mock of UserPasswordRepository interface.

func NewMockUserPasswordRepository

func NewMockUserPasswordRepository(ctrl *gomock.Controller) *MockUserPasswordRepository

NewMockUserPasswordRepository creates a new mock instance.

func (*MockUserPasswordRepository) EXPECT

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

func (*MockUserPasswordRepository) GetUserPassword

func (m *MockUserPasswordRepository) GetUserPassword(ctx context.Context, userID string) (*dbmodels.UserPassword, error)

GetUserPassword mocks base method.

type MockUserPasswordRepositoryMockRecorder

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

MockUserPasswordRepositoryMockRecorder is the mock recorder for MockUserPasswordRepository.

func (*MockUserPasswordRepositoryMockRecorder) GetUserPassword

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

GetUserPassword indicates an expected call of GetUserPassword.

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

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

CountUsers mocks base method.

func (*MockUserRepository) CreateUser

func (m *MockUserRepository) CreateUser(ctx context.Context, user *dbmodels.User, password *dbmodels.UserPassword) (*dbmodels.User, error)

CreateUser mocks base method.

func (*MockUserRepository) EXPECT

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

func (*MockUserRepository) ExistUser

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

ExistUser mocks base method.

func (*MockUserRepository) GetUser

func (m *MockUserRepository) GetUser(ctx context.Context, userID string) (*dbmodels.User, error)

GetUser mocks base method.

func (*MockUserRepository) GetUsers

func (m *MockUserRepository) GetUsers(ctx context.Context, filter *filters.UserFilter, limit, offset int) ([]*dbmodels.User, error)

GetUsers mocks base method.

func (*MockUserRepository) UpdateUserProfile

func (m *MockUserRepository) UpdateUserProfile(ctx context.Context, user *dbmodels.User) (*dbmodels.User, error)

UpdateUserProfile mocks base method.

type MockUserRepositoryMockRecorder

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

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.

func (*MockUserRepositoryMockRecorder) CountUsers

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

CountUsers indicates an expected call of CountUsers.

func (*MockUserRepositoryMockRecorder) CreateUser

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

CreateUser indicates an expected call of CreateUser.

func (*MockUserRepositoryMockRecorder) ExistUser

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

ExistUser indicates an expected call of ExistUser.

func (*MockUserRepositoryMockRecorder) GetUser

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

GetUser indicates an expected call of GetUser.

func (*MockUserRepositoryMockRecorder) GetUsers

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

GetUsers indicates an expected call of GetUsers.

func (*MockUserRepositoryMockRecorder) UpdateUserProfile

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

UpdateUserProfile indicates an expected call of UpdateUserProfile.

Jump to

Keyboard shortcuts

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