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 UserRepository
- func (_m *UserRepository) Create(c context.Context, user *domain.User) error
- func (_m *UserRepository) Fetch(c context.Context) ([]domain.User, error)
- func (_m *UserRepository) GetUserByEmail(c context.Context, email string) (domain.User, error)
- func (_m *UserRepository) GetUserByID(c context.Context, id string) (domain.User, error)
- func (_m *UserRepository) GetUserByUserName(c context.Context, username string) (domain.User, error)
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 mockConstructorTestingTNewLoginUsecase) *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.
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 mockConstructorTestingTNewProfileUsecase) *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.
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 mockConstructorTestingTNewRefreshTokenUsecase) *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.
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 mockConstructorTestingTNewSignupUsecase) *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.
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 UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func NewUserRepository ¶
func NewUserRepository(t mockConstructorTestingTNewUserRepository) *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.
func (*UserRepository) GetUserByEmail ¶
GetByEmail provides a mock function with given fields: c, email
func (*UserRepository) GetUserByID ¶
GetByID provides a mock function with given fields: c, id