Documentation ¶
Index ¶
- type CommentRepo
- func (_m *CommentRepo) Delete(_a0 context.Context, _a1 uint) error
- func (_m *CommentRepo) Fetch(_a0 context.Context, _a1 *[]models.Comment, _a2 uint) error
- func (_m *CommentRepo) GetByUserID(_a0 context.Context, _a1 *models.Comment, _a2 uint) error
- func (_m *CommentRepo) Store(_a0 context.Context, _a1 *models.Comment) error
- func (_m *CommentRepo) Update(_a0 context.Context, _a1 models.Comment, _a2 uint) (models.Photo, error)
- type CommentUsecase
- func (_m *CommentUsecase) Delete(_a0 context.Context, _a1 uint) error
- func (_m *CommentUsecase) Fetch(_a0 context.Context, _a1 *[]models.Comment, _a2 uint) error
- func (_m *CommentUsecase) GetByUserID(_a0 context.Context, _a1 *models.Comment, _a2 uint) error
- func (_m *CommentUsecase) Store(_a0 context.Context, _a1 *models.Comment) error
- func (_m *CommentUsecase) Update(_a0 context.Context, _a1 models.Comment, _a2 uint) (models.Photo, error)
- type PhotoRepo
- func (_m *PhotoRepo) Delete(_a0 context.Context, _a1 uint) error
- func (_m *PhotoRepo) Fetch(_a0 context.Context, _a1 *[]models.Photo) error
- func (_m *PhotoRepo) GetByID(_a0 context.Context, _a1 *models.Photo, _a2 uint) error
- func (_m *PhotoRepo) GetByUserID(_a0 context.Context, _a1 *models.Photo, _a2 uint) error
- func (_m *PhotoRepo) Store(_a0 context.Context, _a1 *models.Photo) error
- func (_m *PhotoRepo) Update(_a0 context.Context, _a1 models.Photo, _a2 uint) (models.Photo, error)
- type PhotoUsecase
- func (_m *PhotoUsecase) Delete(_a0 context.Context, _a1 uint) error
- func (_m *PhotoUsecase) Fetch(_a0 context.Context, _a1 *[]models.Photo) error
- func (_m *PhotoUsecase) GetByID(_a0 context.Context, _a1 *models.Photo, _a2 uint) error
- func (_m *PhotoUsecase) GetByUserID(_a0 context.Context, _a1 *models.Photo, _a2 uint) error
- func (_m *PhotoUsecase) Store(_a0 context.Context, _a1 *models.Photo) error
- func (_m *PhotoUsecase) Update(_a0 context.Context, _a1 models.Photo, _a2 uint) (models.Photo, error)
- type SocialMediaRepo
- func (_m *SocialMediaRepo) Delete(_a0 context.Context, _a1 uint) error
- func (_m *SocialMediaRepo) Fetch(_a0 context.Context, _a1 *[]models.SocialMedia, _a2 uint) error
- func (_m *SocialMediaRepo) GetByUserID(_a0 context.Context, _a1 *models.SocialMedia, _a2 uint) error
- func (_m *SocialMediaRepo) Store(_a0 context.Context, _a1 *models.SocialMedia) error
- func (_m *SocialMediaRepo) Update(_a0 context.Context, _a1 models.SocialMedia, _a2 uint) (models.SocialMedia, error)
- type SocialMediaUsecase
- func (_m *SocialMediaUsecase) Delete(_a0 context.Context, _a1 uint) error
- func (_m *SocialMediaUsecase) Fetch(_a0 context.Context, _a1 *[]models.SocialMedia, _a2 uint) error
- func (_m *SocialMediaUsecase) GetByUserID(_a0 context.Context, _a1 *models.SocialMedia, _a2 uint) error
- func (_m *SocialMediaUsecase) Store(_a0 context.Context, _a1 *models.SocialMedia) error
- func (_m *SocialMediaUsecase) Update(_a0 context.Context, _a1 models.SocialMedia, _a2 uint) (models.SocialMedia, error)
- type UserRepo
- func (_m *UserRepo) Delete(_a0 context.Context, _a1 uint) error
- func (_m *UserRepo) Login(_a0 context.Context, _a1 *models.User) error
- func (_m *UserRepo) Register(_a0 context.Context, _a1 *models.User) error
- func (_m *UserRepo) Update(_a0 context.Context, _a1 models.User, _a2 uint) (models.User, error)
- type UserUsecase
- func (_m *UserUsecase) Delete(_a0 context.Context, _a1 uint) error
- func (_m *UserUsecase) Login(_a0 context.Context, _a1 *models.User) error
- func (_m *UserUsecase) Register(_a0 context.Context, _a1 *models.User) error
- func (_m *UserUsecase) Update(_a0 context.Context, _a1 models.User, _a2 uint) (models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentRepo ¶
CommentRepo is an autogenerated mock type for the CommentRepo type
func NewCommentRepo ¶
func NewCommentRepo(t mockConstructorTestingTNewCommentRepo) *CommentRepo
NewCommentRepo creates a new instance of CommentRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CommentRepo) Delete ¶
func (_m *CommentRepo) Delete(_a0 context.Context, _a1 uint) error
Delete provides a mock function with given fields: _a0, _a1
func (*CommentRepo) GetByUserID ¶
GetByUserID provides a mock function with given fields: _a0, _a1, _a2
type CommentUsecase ¶
CommentUsecase is an autogenerated mock type for the CommentUsecase type
func NewCommentUsecase ¶
func NewCommentUsecase(t mockConstructorTestingTNewCommentUsecase) *CommentUsecase
NewCommentUsecase creates a new instance of CommentUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CommentUsecase) Delete ¶
func (_m *CommentUsecase) Delete(_a0 context.Context, _a1 uint) error
Delete provides a mock function with given fields: _a0, _a1
func (*CommentUsecase) GetByUserID ¶
GetByUserID provides a mock function with given fields: _a0, _a1, _a2
type PhotoRepo ¶
PhotoRepo is an autogenerated mock type for the PhotoRepo type
func NewPhotoRepo ¶
func NewPhotoRepo(t mockConstructorTestingTNewPhotoRepo) *PhotoRepo
NewPhotoRepo creates a new instance of PhotoRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PhotoRepo) GetByUserID ¶
GetByUserID provides a mock function with given fields: _a0, _a1, _a2
type PhotoUsecase ¶
PhotoUsecase is an autogenerated mock type for the PhotoUsecase type
func NewPhotoUsecase ¶
func NewPhotoUsecase(t mockConstructorTestingTNewPhotoUsecase) *PhotoUsecase
NewPhotoUsecase creates a new instance of PhotoUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PhotoUsecase) Delete ¶
func (_m *PhotoUsecase) Delete(_a0 context.Context, _a1 uint) error
Delete provides a mock function with given fields: _a0, _a1
func (*PhotoUsecase) GetByUserID ¶
GetByUserID provides a mock function with given fields: _a0, _a1, _a2
type SocialMediaRepo ¶
SocialMediaRepo is an autogenerated mock type for the SocialMediaRepo type
func NewSocialMediaRepo ¶
func NewSocialMediaRepo(t mockConstructorTestingTNewSocialMediaRepo) *SocialMediaRepo
NewSocialMediaRepo creates a new instance of SocialMediaRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SocialMediaRepo) Delete ¶
func (_m *SocialMediaRepo) Delete(_a0 context.Context, _a1 uint) error
Delete provides a mock function with given fields: _a0, _a1
func (*SocialMediaRepo) Fetch ¶
func (_m *SocialMediaRepo) Fetch(_a0 context.Context, _a1 *[]models.SocialMedia, _a2 uint) error
Fetch provides a mock function with given fields: _a0, _a1, _a2
func (*SocialMediaRepo) GetByUserID ¶
func (_m *SocialMediaRepo) GetByUserID(_a0 context.Context, _a1 *models.SocialMedia, _a2 uint) error
GetByUserID provides a mock function with given fields: _a0, _a1, _a2
func (*SocialMediaRepo) Store ¶
func (_m *SocialMediaRepo) Store(_a0 context.Context, _a1 *models.SocialMedia) error
Store provides a mock function with given fields: _a0, _a1
func (*SocialMediaRepo) Update ¶
func (_m *SocialMediaRepo) Update(_a0 context.Context, _a1 models.SocialMedia, _a2 uint) (models.SocialMedia, error)
Update provides a mock function with given fields: _a0, _a1, _a2
type SocialMediaUsecase ¶
SocialMediaUsecase is an autogenerated mock type for the SocialMediaUsecase type
func NewSocialMediaUsecase ¶
func NewSocialMediaUsecase(t mockConstructorTestingTNewSocialMediaUsecase) *SocialMediaUsecase
NewSocialMediaUsecase creates a new instance of SocialMediaUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SocialMediaUsecase) Delete ¶
func (_m *SocialMediaUsecase) Delete(_a0 context.Context, _a1 uint) error
Delete provides a mock function with given fields: _a0, _a1
func (*SocialMediaUsecase) Fetch ¶
func (_m *SocialMediaUsecase) Fetch(_a0 context.Context, _a1 *[]models.SocialMedia, _a2 uint) error
Fetch provides a mock function with given fields: _a0, _a1, _a2
func (*SocialMediaUsecase) GetByUserID ¶
func (_m *SocialMediaUsecase) GetByUserID(_a0 context.Context, _a1 *models.SocialMedia, _a2 uint) error
GetByUserID provides a mock function with given fields: _a0, _a1, _a2
func (*SocialMediaUsecase) Store ¶
func (_m *SocialMediaUsecase) Store(_a0 context.Context, _a1 *models.SocialMedia) error
Store provides a mock function with given fields: _a0, _a1
func (*SocialMediaUsecase) Update ¶
func (_m *SocialMediaUsecase) Update(_a0 context.Context, _a1 models.SocialMedia, _a2 uint) (models.SocialMedia, error)
Update provides a mock function with given fields: _a0, _a1, _a2
type UserRepo ¶
UserRepo is an autogenerated mock type for the UserRepo type
func NewUserRepo ¶
func NewUserRepo(t mockConstructorTestingTNewUserRepo) *UserRepo
NewUserRepo creates a new instance of UserRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type UserUsecase ¶
UserUsecase is an autogenerated mock type for the UserUsecase type
func NewUserUsecase ¶
func NewUserUsecase(t mockConstructorTestingTNewUserUsecase) *UserUsecase
NewUserUsecase creates a new instance of UserUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserUsecase) Delete ¶
func (_m *UserUsecase) Delete(_a0 context.Context, _a1 uint) error
Delete provides a mock function with given fields: _a0, _a1