mock_usecase

package
v0.0.0-...-c8675c7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_usecase is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEncoder

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

MockEncoder is a mock of Encoder interface.

func NewMockEncoder

func NewMockEncoder(ctrl *gomock.Controller) *MockEncoder

NewMockEncoder creates a new mock instance.

func (*MockEncoder) EXPECT

func (m *MockEncoder) EXPECT() *MockEncoderMockRecorder

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

func (*MockEncoder) Encode

func (m *MockEncoder) Encode(id, path string, audioOnly bool) (string, error)

Encode mocks base method.

func (*MockEncoder) GetOutDirPrefix

func (m *MockEncoder) GetOutDirPrefix() string

GetOutDirPrefix mocks base method.

type MockEncoderMockRecorder

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

MockEncoderMockRecorder is the mock recorder for MockEncoder.

func (*MockEncoderMockRecorder) Encode

func (mr *MockEncoderMockRecorder) Encode(id, path, audioOnly any) *gomock.Call

Encode indicates an expected call of Encode.

func (*MockEncoderMockRecorder) GetOutDirPrefix

func (mr *MockEncoderMockRecorder) GetOutDirPrefix() *gomock.Call

GetOutDirPrefix indicates an expected call of GetOutDirPrefix.

type MockEntityRepository

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

MockEntityRepository is a mock of EntityRepository interface.

func NewMockEntityRepository

func NewMockEntityRepository(ctrl *gomock.Controller) *MockEntityRepository

NewMockEntityRepository creates a new mock instance.

func (*MockEntityRepository) CreateAlbum

func (m *MockEntityRepository) CreateAlbum(ctx context.Context, a entity.Album) error

CreateAlbum mocks base method.

func (*MockEntityRepository) CreateArtist

func (m *MockEntityRepository) CreateArtist(ctx context.Context, a entity.Artist) error

CreateArtist mocks base method.

func (*MockEntityRepository) CreateGenre

func (m *MockEntityRepository) CreateGenre(ctx context.Context, g entity.Genre) error

CreateGenre mocks base method.

func (*MockEntityRepository) CreateMusic

func (m_2 *MockEntityRepository) CreateMusic(ctx context.Context, m entity.Music) error

CreateMusic mocks base method.

func (*MockEntityRepository) CreateUser

func (m *MockEntityRepository) CreateUser(ctx context.Context, u entity.User) error

CreateUser mocks base method.

func (*MockEntityRepository) DeleteAlbums

func (m *MockEntityRepository) DeleteAlbums(ctx context.Context, a []entity.Album) error

DeleteAlbums mocks base method.

func (*MockEntityRepository) DeleteArtist

func (m *MockEntityRepository) DeleteArtist(ctx context.Context, a entity.Artist) error

DeleteArtist mocks base method.

func (*MockEntityRepository) DeleteGenre

func (m *MockEntityRepository) DeleteGenre(ctx context.Context, g entity.Genre) error

DeleteGenre mocks base method.

func (*MockEntityRepository) DeleteMusics

func (m *MockEntityRepository) DeleteMusics(ctx context.Context, musicIDs []uuid.UUID) error

DeleteMusics mocks base method.

func (*MockEntityRepository) DeleteUser

func (m *MockEntityRepository) DeleteUser(ctx context.Context, u entity.User) error

DeleteUser mocks base method.

func (*MockEntityRepository) EXPECT

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

func (*MockEntityRepository) GetAlbumByID

func (m *MockEntityRepository) GetAlbumByID(ctx context.Context, id uuid.UUID) (entity.Album, error)

GetAlbumByID mocks base method.

func (*MockEntityRepository) GetAlbumByIDs

func (m *MockEntityRepository) GetAlbumByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Album, error)

GetAlbumByIDs mocks base method.

func (*MockEntityRepository) GetAlbumsByNameAndArtist

func (m *MockEntityRepository) GetAlbumsByNameAndArtist(ctx context.Context, ownerID uuid.UUID, albumName string, artist entity.Artist) ([]entity.Album, error)

GetAlbumsByNameAndArtist mocks base method.

func (*MockEntityRepository) GetArtistByID

func (m *MockEntityRepository) GetArtistByID(ctx context.Context, id uuid.UUID) (entity.Artist, error)

GetArtistByID mocks base method.

func (*MockEntityRepository) GetArtistByIDs

func (m *MockEntityRepository) GetArtistByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Artist, error)

GetArtistByIDs mocks base method.

func (*MockEntityRepository) GetArtistByName

func (m *MockEntityRepository) GetArtistByName(ctx context.Context, ownerID uuid.UUID, name string) (entity.Artist, error)

GetArtistByName mocks base method.

func (*MockEntityRepository) GetGenreByID

func (m *MockEntityRepository) GetGenreByID(ctx context.Context, id uuid.UUID) (entity.Genre, error)

GetGenreByID mocks base method.

func (*MockEntityRepository) GetGenreByIDs

func (m *MockEntityRepository) GetGenreByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Genre, error)

GetGenreByIDs mocks base method.

func (*MockEntityRepository) GetGenreByName

func (m *MockEntityRepository) GetGenreByName(ctx context.Context, ownerID uuid.UUID, name string) (entity.Genre, error)

GetGenreByName mocks base method.

func (*MockEntityRepository) GetMusicByFileHash

func (m_2 *MockEntityRepository) GetMusicByFileHash(ctx context.Context, userID uuid.UUID, fileHash string, m *entity.Music) error

GetMusicByFileHash mocks base method.

func (*MockEntityRepository) GetMusicByID

func (m *MockEntityRepository) GetMusicByID(ctx context.Context, id uuid.UUID) (entity.Music, error)

GetMusicByID mocks base method.

func (*MockEntityRepository) GetMusicByIDs

func (m *MockEntityRepository) GetMusicByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Music, error)

GetMusicByIDs mocks base method.

func (*MockEntityRepository) GetMusicIDsByUserID

func (m *MockEntityRepository) GetMusicIDsByUserID(ctx context.Context, userID uuid.UUID) ([]uuid.UUID, error)

GetMusicIDsByUserID mocks base method.

func (*MockEntityRepository) GetMusicsByUserID

func (m *MockEntityRepository) GetMusicsByUserID(ctx context.Context, userID uuid.UUID) ([]entity.Music, error)

GetMusicsByUserID mocks base method.

func (*MockEntityRepository) GetUserByID

func (m *MockEntityRepository) GetUserByID(ctx context.Context, userID uuid.UUID) (entity.User, error)

GetUserByID mocks base method.

func (*MockEntityRepository) GetUserByIDs

func (m *MockEntityRepository) GetUserByIDs(ctx context.Context, userIDs []uuid.UUID) ([]entity.User, error)

GetUserByIDs mocks base method.

func (*MockEntityRepository) GetUserByName

func (m *MockEntityRepository) GetUserByName(ctx context.Context, userName string) (entity.User, error)

GetUserByName mocks base method.

func (*MockEntityRepository) HardDeleteMusic

func (m *MockEntityRepository) HardDeleteMusic(ctx context.Context, music entity.Music) error

HardDeleteMusic mocks base method.

func (*MockEntityRepository) Transaction

func (m *MockEntityRepository) Transaction(ctx context.Context, f func(context.Context) error) error

Transaction mocks base method.

func (*MockEntityRepository) UpdateAlbum

func (m *MockEntityRepository) UpdateAlbum(ctx context.Context, a entity.Album) error

UpdateAlbum mocks base method.

func (*MockEntityRepository) UpdateArtist

func (m *MockEntityRepository) UpdateArtist(ctx context.Context, a entity.Artist) error

UpdateArtist mocks base method.

func (*MockEntityRepository) UpdateGenre

func (m *MockEntityRepository) UpdateGenre(ctx context.Context, g entity.Genre) error

UpdateGenre mocks base method.

func (*MockEntityRepository) UpdateMusic

func (m_2 *MockEntityRepository) UpdateMusic(ctx context.Context, m entity.Music) error

UpdateMusic mocks base method.

func (*MockEntityRepository) UpdateMusicStatus

func (m *MockEntityRepository) UpdateMusicStatus(ctx context.Context, musicID uuid.UUID, status entity.MusicStatus) error

UpdateMusicStatus mocks base method.

func (*MockEntityRepository) UpdateMusicStatuses

func (m *MockEntityRepository) UpdateMusicStatuses(ctx context.Context, musicIDs []uuid.UUID, status entity.MusicStatus) error

UpdateMusicStatuses mocks base method.

func (*MockEntityRepository) UpdateUser

func (m *MockEntityRepository) UpdateUser(ctx context.Context, u entity.User) error

UpdateUser mocks base method.

type MockEntityRepositoryMockRecorder

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

MockEntityRepositoryMockRecorder is the mock recorder for MockEntityRepository.

func (*MockEntityRepositoryMockRecorder) CreateAlbum

func (mr *MockEntityRepositoryMockRecorder) CreateAlbum(ctx, a any) *gomock.Call

CreateAlbum indicates an expected call of CreateAlbum.

func (*MockEntityRepositoryMockRecorder) CreateArtist

func (mr *MockEntityRepositoryMockRecorder) CreateArtist(ctx, a any) *gomock.Call

CreateArtist indicates an expected call of CreateArtist.

func (*MockEntityRepositoryMockRecorder) CreateGenre

func (mr *MockEntityRepositoryMockRecorder) CreateGenre(ctx, g any) *gomock.Call

CreateGenre indicates an expected call of CreateGenre.

func (*MockEntityRepositoryMockRecorder) CreateMusic

func (mr *MockEntityRepositoryMockRecorder) CreateMusic(ctx, m any) *gomock.Call

CreateMusic indicates an expected call of CreateMusic.

func (*MockEntityRepositoryMockRecorder) CreateUser

func (mr *MockEntityRepositoryMockRecorder) CreateUser(ctx, u any) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockEntityRepositoryMockRecorder) DeleteAlbums

func (mr *MockEntityRepositoryMockRecorder) DeleteAlbums(ctx, a any) *gomock.Call

DeleteAlbums indicates an expected call of DeleteAlbums.

func (*MockEntityRepositoryMockRecorder) DeleteArtist

func (mr *MockEntityRepositoryMockRecorder) DeleteArtist(ctx, a any) *gomock.Call

DeleteArtist indicates an expected call of DeleteArtist.

func (*MockEntityRepositoryMockRecorder) DeleteGenre

func (mr *MockEntityRepositoryMockRecorder) DeleteGenre(ctx, g any) *gomock.Call

DeleteGenre indicates an expected call of DeleteGenre.

func (*MockEntityRepositoryMockRecorder) DeleteMusics

func (mr *MockEntityRepositoryMockRecorder) DeleteMusics(ctx, musicIDs any) *gomock.Call

DeleteMusics indicates an expected call of DeleteMusics.

func (*MockEntityRepositoryMockRecorder) DeleteUser

func (mr *MockEntityRepositoryMockRecorder) DeleteUser(ctx, u any) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockEntityRepositoryMockRecorder) GetAlbumByID

func (mr *MockEntityRepositoryMockRecorder) GetAlbumByID(ctx, id any) *gomock.Call

GetAlbumByID indicates an expected call of GetAlbumByID.

func (*MockEntityRepositoryMockRecorder) GetAlbumByIDs

func (mr *MockEntityRepositoryMockRecorder) GetAlbumByIDs(ctx, ids any) *gomock.Call

GetAlbumByIDs indicates an expected call of GetAlbumByIDs.

func (*MockEntityRepositoryMockRecorder) GetAlbumsByNameAndArtist

func (mr *MockEntityRepositoryMockRecorder) GetAlbumsByNameAndArtist(ctx, ownerID, albumName, artist any) *gomock.Call

GetAlbumsByNameAndArtist indicates an expected call of GetAlbumsByNameAndArtist.

func (*MockEntityRepositoryMockRecorder) GetArtistByID

func (mr *MockEntityRepositoryMockRecorder) GetArtistByID(ctx, id any) *gomock.Call

GetArtistByID indicates an expected call of GetArtistByID.

func (*MockEntityRepositoryMockRecorder) GetArtistByIDs

func (mr *MockEntityRepositoryMockRecorder) GetArtistByIDs(ctx, ids any) *gomock.Call

GetArtistByIDs indicates an expected call of GetArtistByIDs.

func (*MockEntityRepositoryMockRecorder) GetArtistByName

func (mr *MockEntityRepositoryMockRecorder) GetArtistByName(ctx, ownerID, name any) *gomock.Call

GetArtistByName indicates an expected call of GetArtistByName.

func (*MockEntityRepositoryMockRecorder) GetGenreByID

func (mr *MockEntityRepositoryMockRecorder) GetGenreByID(ctx, id any) *gomock.Call

GetGenreByID indicates an expected call of GetGenreByID.

func (*MockEntityRepositoryMockRecorder) GetGenreByIDs

func (mr *MockEntityRepositoryMockRecorder) GetGenreByIDs(ctx, ids any) *gomock.Call

GetGenreByIDs indicates an expected call of GetGenreByIDs.

func (*MockEntityRepositoryMockRecorder) GetGenreByName

func (mr *MockEntityRepositoryMockRecorder) GetGenreByName(ctx, ownerID, name any) *gomock.Call

GetGenreByName indicates an expected call of GetGenreByName.

func (*MockEntityRepositoryMockRecorder) GetMusicByFileHash

func (mr *MockEntityRepositoryMockRecorder) GetMusicByFileHash(ctx, userID, fileHash, m any) *gomock.Call

GetMusicByFileHash indicates an expected call of GetMusicByFileHash.

func (*MockEntityRepositoryMockRecorder) GetMusicByID

func (mr *MockEntityRepositoryMockRecorder) GetMusicByID(ctx, id any) *gomock.Call

GetMusicByID indicates an expected call of GetMusicByID.

func (*MockEntityRepositoryMockRecorder) GetMusicByIDs

func (mr *MockEntityRepositoryMockRecorder) GetMusicByIDs(ctx, ids any) *gomock.Call

GetMusicByIDs indicates an expected call of GetMusicByIDs.

func (*MockEntityRepositoryMockRecorder) GetMusicIDsByUserID

func (mr *MockEntityRepositoryMockRecorder) GetMusicIDsByUserID(ctx, userID any) *gomock.Call

GetMusicIDsByUserID indicates an expected call of GetMusicIDsByUserID.

func (*MockEntityRepositoryMockRecorder) GetMusicsByUserID

func (mr *MockEntityRepositoryMockRecorder) GetMusicsByUserID(ctx, userID any) *gomock.Call

GetMusicsByUserID indicates an expected call of GetMusicsByUserID.

func (*MockEntityRepositoryMockRecorder) GetUserByID

func (mr *MockEntityRepositoryMockRecorder) GetUserByID(ctx, userID any) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockEntityRepositoryMockRecorder) GetUserByIDs

func (mr *MockEntityRepositoryMockRecorder) GetUserByIDs(ctx, userIDs any) *gomock.Call

GetUserByIDs indicates an expected call of GetUserByIDs.

func (*MockEntityRepositoryMockRecorder) GetUserByName

func (mr *MockEntityRepositoryMockRecorder) GetUserByName(ctx, userName any) *gomock.Call

GetUserByName indicates an expected call of GetUserByName.

func (*MockEntityRepositoryMockRecorder) HardDeleteMusic

func (mr *MockEntityRepositoryMockRecorder) HardDeleteMusic(ctx, music any) *gomock.Call

HardDeleteMusic indicates an expected call of HardDeleteMusic.

func (*MockEntityRepositoryMockRecorder) Transaction

func (mr *MockEntityRepositoryMockRecorder) Transaction(ctx, f any) *gomock.Call

Transaction indicates an expected call of Transaction.

func (*MockEntityRepositoryMockRecorder) UpdateAlbum

func (mr *MockEntityRepositoryMockRecorder) UpdateAlbum(ctx, a any) *gomock.Call

UpdateAlbum indicates an expected call of UpdateAlbum.

func (*MockEntityRepositoryMockRecorder) UpdateArtist

func (mr *MockEntityRepositoryMockRecorder) UpdateArtist(ctx, a any) *gomock.Call

UpdateArtist indicates an expected call of UpdateArtist.

func (*MockEntityRepositoryMockRecorder) UpdateGenre

func (mr *MockEntityRepositoryMockRecorder) UpdateGenre(ctx, g any) *gomock.Call

UpdateGenre indicates an expected call of UpdateGenre.

func (*MockEntityRepositoryMockRecorder) UpdateMusic

func (mr *MockEntityRepositoryMockRecorder) UpdateMusic(ctx, m any) *gomock.Call

UpdateMusic indicates an expected call of UpdateMusic.

func (*MockEntityRepositoryMockRecorder) UpdateMusicStatus

func (mr *MockEntityRepositoryMockRecorder) UpdateMusicStatus(ctx, musicID, status any) *gomock.Call

UpdateMusicStatus indicates an expected call of UpdateMusicStatus.

func (*MockEntityRepositoryMockRecorder) UpdateMusicStatuses

func (mr *MockEntityRepositoryMockRecorder) UpdateMusicStatuses(ctx, musicIDs, status any) *gomock.Call

UpdateMusicStatuses indicates an expected call of UpdateMusicStatuses.

func (*MockEntityRepositoryMockRecorder) UpdateUser

func (mr *MockEntityRepositoryMockRecorder) UpdateUser(ctx, u any) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

type MockMetadataReader

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

MockMetadataReader is a mock of MetadataReader interface.

func NewMockMetadataReader

func NewMockMetadataReader(ctrl *gomock.Controller) *MockMetadataReader

NewMockMetadataReader creates a new mock instance.

func (*MockMetadataReader) EXPECT

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

func (*MockMetadataReader) GetMetadata

func (m *MockMetadataReader) GetMetadata(ctx context.Context, path string) (entity.RawMusicMetadata, error)

GetMetadata mocks base method.

type MockMetadataReaderMockRecorder

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

MockMetadataReaderMockRecorder is the mock recorder for MockMetadataReader.

func (*MockMetadataReaderMockRecorder) GetMetadata

func (mr *MockMetadataReaderMockRecorder) GetMetadata(ctx, path any) *gomock.Call

GetMetadata indicates an expected call of GetMetadata.

type MockObjectStorage

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

MockObjectStorage is a mock of ObjectStorage interface.

func NewMockObjectStorage

func NewMockObjectStorage(ctrl *gomock.Controller) *MockObjectStorage

NewMockObjectStorage creates a new mock instance.

func (*MockObjectStorage) DeleteObject

func (m *MockObjectStorage) DeleteObject(ctx context.Context, objectName string) error

DeleteObject mocks base method.

func (*MockObjectStorage) EXPECT

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

func (*MockObjectStorage) GetObject

func (m *MockObjectStorage) GetObject(ctx context.Context, objectName string) (io.ReadCloser, error)

GetObject mocks base method.

func (*MockObjectStorage) GetObjectURL

func (m *MockObjectStorage) GetObjectURL(ctx context.Context, objectName, cacheControl string) (*url.URL, error)

GetObjectURL mocks base method.

func (*MockObjectStorage) UploadDirectory

func (m *MockObjectStorage) UploadDirectory(ctx context.Context, objectBaseDir, localDir string) error

UploadDirectory mocks base method.

func (*MockObjectStorage) UploadObject

func (m *MockObjectStorage) UploadObject(ctx context.Context, objectName string, data io.Reader, size int64) error

UploadObject mocks base method.

type MockObjectStorageMockRecorder

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

MockObjectStorageMockRecorder is the mock recorder for MockObjectStorage.

func (*MockObjectStorageMockRecorder) DeleteObject

func (mr *MockObjectStorageMockRecorder) DeleteObject(ctx, objectName any) *gomock.Call

DeleteObject indicates an expected call of DeleteObject.

func (*MockObjectStorageMockRecorder) GetObject

func (mr *MockObjectStorageMockRecorder) GetObject(ctx, objectName any) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockObjectStorageMockRecorder) GetObjectURL

func (mr *MockObjectStorageMockRecorder) GetObjectURL(ctx, objectName, cacheControl any) *gomock.Call

GetObjectURL indicates an expected call of GetObjectURL.

func (*MockObjectStorageMockRecorder) UploadDirectory

func (mr *MockObjectStorageMockRecorder) UploadDirectory(ctx, objectBaseDir, localDir any) *gomock.Call

UploadDirectory indicates an expected call of UploadDirectory.

func (*MockObjectStorageMockRecorder) UploadObject

func (mr *MockObjectStorageMockRecorder) UploadObject(ctx, objectName, data, size any) *gomock.Call

UploadObject indicates an expected call of UploadObject.

type MockalbumRepository

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

MockalbumRepository is a mock of albumRepository interface.

func NewMockalbumRepository

func NewMockalbumRepository(ctrl *gomock.Controller) *MockalbumRepository

NewMockalbumRepository creates a new mock instance.

func (*MockalbumRepository) CreateAlbum

func (m *MockalbumRepository) CreateAlbum(ctx context.Context, a entity.Album) error

CreateAlbum mocks base method.

func (*MockalbumRepository) DeleteAlbums

func (m *MockalbumRepository) DeleteAlbums(ctx context.Context, a []entity.Album) error

DeleteAlbums mocks base method.

func (*MockalbumRepository) EXPECT

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

func (*MockalbumRepository) GetAlbumByID

func (m *MockalbumRepository) GetAlbumByID(ctx context.Context, id uuid.UUID) (entity.Album, error)

GetAlbumByID mocks base method.

func (*MockalbumRepository) GetAlbumByIDs

func (m *MockalbumRepository) GetAlbumByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Album, error)

GetAlbumByIDs mocks base method.

func (*MockalbumRepository) GetAlbumsByNameAndArtist

func (m *MockalbumRepository) GetAlbumsByNameAndArtist(ctx context.Context, ownerID uuid.UUID, albumName string, artist entity.Artist) ([]entity.Album, error)

GetAlbumsByNameAndArtist mocks base method.

func (*MockalbumRepository) UpdateAlbum

func (m *MockalbumRepository) UpdateAlbum(ctx context.Context, a entity.Album) error

UpdateAlbum mocks base method.

type MockalbumRepositoryMockRecorder

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

MockalbumRepositoryMockRecorder is the mock recorder for MockalbumRepository.

func (*MockalbumRepositoryMockRecorder) CreateAlbum

func (mr *MockalbumRepositoryMockRecorder) CreateAlbum(ctx, a any) *gomock.Call

CreateAlbum indicates an expected call of CreateAlbum.

func (*MockalbumRepositoryMockRecorder) DeleteAlbums

func (mr *MockalbumRepositoryMockRecorder) DeleteAlbums(ctx, a any) *gomock.Call

DeleteAlbums indicates an expected call of DeleteAlbums.

func (*MockalbumRepositoryMockRecorder) GetAlbumByID

func (mr *MockalbumRepositoryMockRecorder) GetAlbumByID(ctx, id any) *gomock.Call

GetAlbumByID indicates an expected call of GetAlbumByID.

func (*MockalbumRepositoryMockRecorder) GetAlbumByIDs

func (mr *MockalbumRepositoryMockRecorder) GetAlbumByIDs(ctx, ids any) *gomock.Call

GetAlbumByIDs indicates an expected call of GetAlbumByIDs.

func (*MockalbumRepositoryMockRecorder) GetAlbumsByNameAndArtist

func (mr *MockalbumRepositoryMockRecorder) GetAlbumsByNameAndArtist(ctx, ownerID, albumName, artist any) *gomock.Call

GetAlbumsByNameAndArtist indicates an expected call of GetAlbumsByNameAndArtist.

func (*MockalbumRepositoryMockRecorder) UpdateAlbum

func (mr *MockalbumRepositoryMockRecorder) UpdateAlbum(ctx, a any) *gomock.Call

UpdateAlbum indicates an expected call of UpdateAlbum.

type MockartistRepository

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

MockartistRepository is a mock of artistRepository interface.

func NewMockartistRepository

func NewMockartistRepository(ctrl *gomock.Controller) *MockartistRepository

NewMockartistRepository creates a new mock instance.

func (*MockartistRepository) CreateArtist

func (m *MockartistRepository) CreateArtist(ctx context.Context, a entity.Artist) error

CreateArtist mocks base method.

func (*MockartistRepository) DeleteArtist

func (m *MockartistRepository) DeleteArtist(ctx context.Context, a entity.Artist) error

DeleteArtist mocks base method.

func (*MockartistRepository) EXPECT

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

func (*MockartistRepository) GetArtistByID

func (m *MockartistRepository) GetArtistByID(ctx context.Context, id uuid.UUID) (entity.Artist, error)

GetArtistByID mocks base method.

func (*MockartistRepository) GetArtistByIDs

func (m *MockartistRepository) GetArtistByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Artist, error)

GetArtistByIDs mocks base method.

func (*MockartistRepository) GetArtistByName

func (m *MockartistRepository) GetArtistByName(ctx context.Context, ownerID uuid.UUID, name string) (entity.Artist, error)

GetArtistByName mocks base method.

func (*MockartistRepository) UpdateArtist

func (m *MockartistRepository) UpdateArtist(ctx context.Context, a entity.Artist) error

UpdateArtist mocks base method.

type MockartistRepositoryMockRecorder

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

MockartistRepositoryMockRecorder is the mock recorder for MockartistRepository.

func (*MockartistRepositoryMockRecorder) CreateArtist

func (mr *MockartistRepositoryMockRecorder) CreateArtist(ctx, a any) *gomock.Call

CreateArtist indicates an expected call of CreateArtist.

func (*MockartistRepositoryMockRecorder) DeleteArtist

func (mr *MockartistRepositoryMockRecorder) DeleteArtist(ctx, a any) *gomock.Call

DeleteArtist indicates an expected call of DeleteArtist.

func (*MockartistRepositoryMockRecorder) GetArtistByID

func (mr *MockartistRepositoryMockRecorder) GetArtistByID(ctx, id any) *gomock.Call

GetArtistByID indicates an expected call of GetArtistByID.

func (*MockartistRepositoryMockRecorder) GetArtistByIDs

func (mr *MockartistRepositoryMockRecorder) GetArtistByIDs(ctx, ids any) *gomock.Call

GetArtistByIDs indicates an expected call of GetArtistByIDs.

func (*MockartistRepositoryMockRecorder) GetArtistByName

func (mr *MockartistRepositoryMockRecorder) GetArtistByName(ctx, ownerID, name any) *gomock.Call

GetArtistByName indicates an expected call of GetArtistByName.

func (*MockartistRepositoryMockRecorder) UpdateArtist

func (mr *MockartistRepositoryMockRecorder) UpdateArtist(ctx, a any) *gomock.Call

UpdateArtist indicates an expected call of UpdateArtist.

type MockgenericRepository

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

MockgenericRepository is a mock of genericRepository interface.

func NewMockgenericRepository

func NewMockgenericRepository(ctrl *gomock.Controller) *MockgenericRepository

NewMockgenericRepository creates a new mock instance.

func (*MockgenericRepository) CreateGenre

func (m *MockgenericRepository) CreateGenre(ctx context.Context, g entity.Genre) error

CreateGenre mocks base method.

func (*MockgenericRepository) DeleteGenre

func (m *MockgenericRepository) DeleteGenre(ctx context.Context, g entity.Genre) error

DeleteGenre mocks base method.

func (*MockgenericRepository) EXPECT

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

func (*MockgenericRepository) GetGenreByID

func (m *MockgenericRepository) GetGenreByID(ctx context.Context, id uuid.UUID) (entity.Genre, error)

GetGenreByID mocks base method.

func (*MockgenericRepository) GetGenreByIDs

func (m *MockgenericRepository) GetGenreByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Genre, error)

GetGenreByIDs mocks base method.

func (*MockgenericRepository) GetGenreByName

func (m *MockgenericRepository) GetGenreByName(ctx context.Context, ownerID uuid.UUID, name string) (entity.Genre, error)

GetGenreByName mocks base method.

func (*MockgenericRepository) UpdateGenre

func (m *MockgenericRepository) UpdateGenre(ctx context.Context, g entity.Genre) error

UpdateGenre mocks base method.

type MockgenericRepositoryMockRecorder

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

MockgenericRepositoryMockRecorder is the mock recorder for MockgenericRepository.

func (*MockgenericRepositoryMockRecorder) CreateGenre

func (mr *MockgenericRepositoryMockRecorder) CreateGenre(ctx, g any) *gomock.Call

CreateGenre indicates an expected call of CreateGenre.

func (*MockgenericRepositoryMockRecorder) DeleteGenre

func (mr *MockgenericRepositoryMockRecorder) DeleteGenre(ctx, g any) *gomock.Call

DeleteGenre indicates an expected call of DeleteGenre.

func (*MockgenericRepositoryMockRecorder) GetGenreByID

func (mr *MockgenericRepositoryMockRecorder) GetGenreByID(ctx, id any) *gomock.Call

GetGenreByID indicates an expected call of GetGenreByID.

func (*MockgenericRepositoryMockRecorder) GetGenreByIDs

func (mr *MockgenericRepositoryMockRecorder) GetGenreByIDs(ctx, ids any) *gomock.Call

GetGenreByIDs indicates an expected call of GetGenreByIDs.

func (*MockgenericRepositoryMockRecorder) GetGenreByName

func (mr *MockgenericRepositoryMockRecorder) GetGenreByName(ctx, ownerID, name any) *gomock.Call

GetGenreByName indicates an expected call of GetGenreByName.

func (*MockgenericRepositoryMockRecorder) UpdateGenre

func (mr *MockgenericRepositoryMockRecorder) UpdateGenre(ctx, g any) *gomock.Call

UpdateGenre indicates an expected call of UpdateGenre.

type MockmusicRepository

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

MockmusicRepository is a mock of musicRepository interface.

func NewMockmusicRepository

func NewMockmusicRepository(ctrl *gomock.Controller) *MockmusicRepository

NewMockmusicRepository creates a new mock instance.

func (*MockmusicRepository) CreateMusic

func (m_2 *MockmusicRepository) CreateMusic(ctx context.Context, m entity.Music) error

CreateMusic mocks base method.

func (*MockmusicRepository) DeleteMusics

func (m *MockmusicRepository) DeleteMusics(ctx context.Context, musicIDs []uuid.UUID) error

DeleteMusics mocks base method.

func (*MockmusicRepository) EXPECT

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

func (*MockmusicRepository) GetMusicByFileHash

func (m_2 *MockmusicRepository) GetMusicByFileHash(ctx context.Context, userID uuid.UUID, fileHash string, m *entity.Music) error

GetMusicByFileHash mocks base method.

func (*MockmusicRepository) GetMusicByID

func (m *MockmusicRepository) GetMusicByID(ctx context.Context, id uuid.UUID) (entity.Music, error)

GetMusicByID mocks base method.

func (*MockmusicRepository) GetMusicByIDs

func (m *MockmusicRepository) GetMusicByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Music, error)

GetMusicByIDs mocks base method.

func (*MockmusicRepository) GetMusicIDsByUserID

func (m *MockmusicRepository) GetMusicIDsByUserID(ctx context.Context, userID uuid.UUID) ([]uuid.UUID, error)

GetMusicIDsByUserID mocks base method.

func (*MockmusicRepository) GetMusicsByUserID

func (m *MockmusicRepository) GetMusicsByUserID(ctx context.Context, userID uuid.UUID) ([]entity.Music, error)

GetMusicsByUserID mocks base method.

func (*MockmusicRepository) HardDeleteMusic

func (m *MockmusicRepository) HardDeleteMusic(ctx context.Context, music entity.Music) error

HardDeleteMusic mocks base method.

func (*MockmusicRepository) UpdateMusic

func (m_2 *MockmusicRepository) UpdateMusic(ctx context.Context, m entity.Music) error

UpdateMusic mocks base method.

func (*MockmusicRepository) UpdateMusicStatus

func (m *MockmusicRepository) UpdateMusicStatus(ctx context.Context, musicID uuid.UUID, status entity.MusicStatus) error

UpdateMusicStatus mocks base method.

func (*MockmusicRepository) UpdateMusicStatuses

func (m *MockmusicRepository) UpdateMusicStatuses(ctx context.Context, musicIDs []uuid.UUID, status entity.MusicStatus) error

UpdateMusicStatuses mocks base method.

type MockmusicRepositoryMockRecorder

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

MockmusicRepositoryMockRecorder is the mock recorder for MockmusicRepository.

func (*MockmusicRepositoryMockRecorder) CreateMusic

func (mr *MockmusicRepositoryMockRecorder) CreateMusic(ctx, m any) *gomock.Call

CreateMusic indicates an expected call of CreateMusic.

func (*MockmusicRepositoryMockRecorder) DeleteMusics

func (mr *MockmusicRepositoryMockRecorder) DeleteMusics(ctx, musicIDs any) *gomock.Call

DeleteMusics indicates an expected call of DeleteMusics.

func (*MockmusicRepositoryMockRecorder) GetMusicByFileHash

func (mr *MockmusicRepositoryMockRecorder) GetMusicByFileHash(ctx, userID, fileHash, m any) *gomock.Call

GetMusicByFileHash indicates an expected call of GetMusicByFileHash.

func (*MockmusicRepositoryMockRecorder) GetMusicByID

func (mr *MockmusicRepositoryMockRecorder) GetMusicByID(ctx, id any) *gomock.Call

GetMusicByID indicates an expected call of GetMusicByID.

func (*MockmusicRepositoryMockRecorder) GetMusicByIDs

func (mr *MockmusicRepositoryMockRecorder) GetMusicByIDs(ctx, ids any) *gomock.Call

GetMusicByIDs indicates an expected call of GetMusicByIDs.

func (*MockmusicRepositoryMockRecorder) GetMusicIDsByUserID

func (mr *MockmusicRepositoryMockRecorder) GetMusicIDsByUserID(ctx, userID any) *gomock.Call

GetMusicIDsByUserID indicates an expected call of GetMusicIDsByUserID.

func (*MockmusicRepositoryMockRecorder) GetMusicsByUserID

func (mr *MockmusicRepositoryMockRecorder) GetMusicsByUserID(ctx, userID any) *gomock.Call

GetMusicsByUserID indicates an expected call of GetMusicsByUserID.

func (*MockmusicRepositoryMockRecorder) HardDeleteMusic

func (mr *MockmusicRepositoryMockRecorder) HardDeleteMusic(ctx, music any) *gomock.Call

HardDeleteMusic indicates an expected call of HardDeleteMusic.

func (*MockmusicRepositoryMockRecorder) UpdateMusic

func (mr *MockmusicRepositoryMockRecorder) UpdateMusic(ctx, m any) *gomock.Call

UpdateMusic indicates an expected call of UpdateMusic.

func (*MockmusicRepositoryMockRecorder) UpdateMusicStatus

func (mr *MockmusicRepositoryMockRecorder) UpdateMusicStatus(ctx, musicID, status any) *gomock.Call

UpdateMusicStatus indicates an expected call of UpdateMusicStatus.

func (*MockmusicRepositoryMockRecorder) UpdateMusicStatuses

func (mr *MockmusicRepositoryMockRecorder) UpdateMusicStatuses(ctx, musicIDs, status any) *gomock.Call

UpdateMusicStatuses indicates an expected call of UpdateMusicStatuses.

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

func (m *MockuserRepository) CreateUser(ctx context.Context, u entity.User) error

CreateUser mocks base method.

func (*MockuserRepository) DeleteUser

func (m *MockuserRepository) DeleteUser(ctx context.Context, u entity.User) error

DeleteUser mocks base method.

func (*MockuserRepository) EXPECT

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

func (*MockuserRepository) GetUserByID

func (m *MockuserRepository) GetUserByID(ctx context.Context, userID uuid.UUID) (entity.User, error)

GetUserByID mocks base method.

func (*MockuserRepository) GetUserByIDs

func (m *MockuserRepository) GetUserByIDs(ctx context.Context, userIDs []uuid.UUID) ([]entity.User, error)

GetUserByIDs mocks base method.

func (*MockuserRepository) GetUserByName

func (m *MockuserRepository) GetUserByName(ctx context.Context, userName string) (entity.User, error)

GetUserByName mocks base method.

func (*MockuserRepository) UpdateUser

func (m *MockuserRepository) UpdateUser(ctx context.Context, u entity.User) error

UpdateUser mocks base method.

type MockuserRepositoryMockRecorder

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

MockuserRepositoryMockRecorder is the mock recorder for MockuserRepository.

func (*MockuserRepositoryMockRecorder) CreateUser

func (mr *MockuserRepositoryMockRecorder) CreateUser(ctx, u any) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockuserRepositoryMockRecorder) DeleteUser

func (mr *MockuserRepositoryMockRecorder) DeleteUser(ctx, u any) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockuserRepositoryMockRecorder) GetUserByID

func (mr *MockuserRepositoryMockRecorder) GetUserByID(ctx, userID any) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockuserRepositoryMockRecorder) GetUserByIDs

func (mr *MockuserRepositoryMockRecorder) GetUserByIDs(ctx, userIDs any) *gomock.Call

GetUserByIDs indicates an expected call of GetUserByIDs.

func (*MockuserRepositoryMockRecorder) GetUserByName

func (mr *MockuserRepositoryMockRecorder) GetUserByName(ctx, userName any) *gomock.Call

GetUserByName indicates an expected call of GetUserByName.

func (*MockuserRepositoryMockRecorder) UpdateUser

func (mr *MockuserRepositoryMockRecorder) UpdateUser(ctx, u any) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

Jump to

Keyboard shortcuts

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