Documentation ¶
Index ¶
- type LoginUsecase
- func (_m *LoginUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *LoginUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *LoginUsecase) GetUserByEmail(c context.Context, email string) (domain.User, error)
- type ProfileUsecase
- type RefreshTokenUsecase
- func (_m *RefreshTokenUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *RefreshTokenUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *RefreshTokenUsecase) ExtractIDFromToken(requestToken string, secret string) (string, error)
- func (_m *RefreshTokenUsecase) GetUserByID(c context.Context, id string) (domain.User, error)
- type SignupUsecase
- func (_m *SignupUsecase) Create(c context.Context, user *domain.User) error
- func (_m *SignupUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *SignupUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *SignupUsecase) GetUserByEmail(c context.Context, email string) (domain.User, error)
- type TagRepository
- func (_m *TagRepository) Create(c context.Context, tag domain.Tag) error
- func (_m *TagRepository) Delete(c context.Context, tagID uint64) error
- func (_m *TagRepository) Fetch(c context.Context, r domain.FetchTagRequest) ([]domain.Tag, *domain.Pagination, error)
- func (_m *TagRepository) FetchAll(c context.Context) ([]domain.Tag, error)
- func (_m *TagRepository) GetByID(c context.Context, tagID uint64) (*domain.Tag, error)
- func (_m *TagRepository) Update(c context.Context, tag domain.Tag) error
- type TagUsecase
- func (_m *TagUsecase) Create(c context.Context, tag domain.Tag) error
- func (_m *TagUsecase) Delete(c context.Context, tagID uint64) error
- func (_m *TagUsecase) Fetch(c context.Context, r domain.FetchTagRequest) ([]domain.Tag, *domain.Pagination, error)
- func (_m *TagUsecase) FetchAll(c context.Context) ([]domain.Tag, error)
- func (_m *TagUsecase) GetByID(c context.Context, tagID uint64) (*domain.Tag, error)
- func (_m *TagUsecase) Update(c context.Context, tag domain.Tag) error
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginUsecase ¶
LoginUsecase is an autogenerated mock type for the LoginUsecase type
func NewLoginUsecase ¶
func NewLoginUsecase(t interface { mock.TestingT Cleanup(func()) }) *LoginUsecase
NewLoginUsecase creates a new instance of LoginUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*LoginUsecase) CreateAccessToken ¶
func (_m *LoginUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
CreateAccessToken provides a mock function with given fields: user, secret, expiry
func (*LoginUsecase) CreateRefreshToken ¶
func (_m *LoginUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
CreateRefreshToken provides a mock function with given fields: user, secret, expiry
func (*LoginUsecase) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: c, email
type ProfileUsecase ¶
ProfileUsecase is an autogenerated mock type for the ProfileUsecase type
func NewProfileUsecase ¶
func NewProfileUsecase(t interface { mock.TestingT Cleanup(func()) }) *ProfileUsecase
NewProfileUsecase creates a new instance of ProfileUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ProfileUsecase) GetProfileByID ¶
GetProfileByID provides a mock function with given fields: c, userID
type RefreshTokenUsecase ¶
RefreshTokenUsecase is an autogenerated mock type for the RefreshTokenUsecase type
func NewRefreshTokenUsecase ¶
func NewRefreshTokenUsecase(t interface { mock.TestingT Cleanup(func()) }) *RefreshTokenUsecase
NewRefreshTokenUsecase creates a new instance of RefreshTokenUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RefreshTokenUsecase) CreateAccessToken ¶
func (_m *RefreshTokenUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
CreateAccessToken provides a mock function with given fields: user, secret, expiry
func (*RefreshTokenUsecase) CreateRefreshToken ¶
func (_m *RefreshTokenUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
CreateRefreshToken provides a mock function with given fields: user, secret, expiry
func (*RefreshTokenUsecase) ExtractIDFromToken ¶
func (_m *RefreshTokenUsecase) ExtractIDFromToken(requestToken string, secret string) (string, error)
ExtractIDFromToken provides a mock function with given fields: requestToken, secret
func (*RefreshTokenUsecase) GetUserByID ¶
GetUserByID provides a mock function with given fields: c, id
type SignupUsecase ¶
SignupUsecase is an autogenerated mock type for the SignupUsecase type
func NewSignupUsecase ¶
func NewSignupUsecase(t interface { mock.TestingT Cleanup(func()) }) *SignupUsecase
NewSignupUsecase creates a new instance of SignupUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SignupUsecase) CreateAccessToken ¶
func (_m *SignupUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
CreateAccessToken provides a mock function with given fields: user, secret, expiry
func (*SignupUsecase) CreateRefreshToken ¶
func (_m *SignupUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
CreateRefreshToken provides a mock function with given fields: user, secret, expiry
func (*SignupUsecase) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: c, email
type TagRepository ¶
TagRepository is an autogenerated mock type for the TagRepository type
func NewTagRepository ¶
func NewTagRepository(t interface { mock.TestingT Cleanup(func()) }) *TagRepository
NewTagRepository creates a new instance of TagRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TagRepository) Delete ¶
func (_m *TagRepository) Delete(c context.Context, tagID uint64) error
Delete provides a mock function with given fields: c, tagID
func (*TagRepository) Fetch ¶
func (_m *TagRepository) Fetch(c context.Context, r domain.FetchTagRequest) ([]domain.Tag, *domain.Pagination, error)
Fetch provides a mock function with given fields: c, r
type TagUsecase ¶
TagUsecase is an autogenerated mock type for the TagUsecase type
func NewTagUsecase ¶
func NewTagUsecase(t interface { mock.TestingT Cleanup(func()) }) *TagUsecase
NewTagUsecase creates a new instance of TagUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TagUsecase) Delete ¶
func (_m *TagUsecase) Delete(c context.Context, tagID uint64) error
Delete provides a mock function with given fields: c, tagID
func (*TagUsecase) Fetch ¶
func (_m *TagUsecase) Fetch(c context.Context, r domain.FetchTagRequest) ([]domain.Tag, *domain.Pagination, error)
Fetch provides a mock function with given fields: c, r
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func NewUserRepository ¶
func NewUserRepository(t interface { mock.TestingT Cleanup(func()) }) *UserRepository
NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserRepository) GetByEmail ¶
GetByEmail provides a mock function with given fields: c, email