Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RefreshTokenUsecase ¶
type RefreshTokenUsecase interface {
Execute(ctx context.Context, dto dto.UserRefreshTokenRequest) (dto.UserLoginResponse, error)
}
RefreshTokenUsecase provides a method to refresh the token
func NewUserRefreshTokenUsecase ¶
func NewUserRefreshTokenUsecase( userRepo repository.UserRepository, userTokenRepo repository.UserTokenRepository, timeFactory timeutil.TimeFactory, jwt services.JWT, uuid uuidstring.UUIDString, ) RefreshTokenUsecase
type UserAddUsecase ¶
type UserAddUsecase interface {
Execute(ctx context.Context, dto dto.UserAddRequest) (entity.User, error)
}
UserAddUsecase provides a method to add an internal user to the system
func NewUserAddUsecase ¶
func NewUserAddUsecase( userRepo repository.UserRepository, timeFactory timeutil.TimeFactory, hashPassword services.HashPass, ) UserAddUsecase
type UserLoginUsecase ¶
type UserLoginUsecase interface {
Execute(ctx context.Context, dto dto.UserLoginRequest) (dto.UserLoginResponse, error)
}
UserLoginUsecase provides a method to login an user to the system
func NewUserLoginUsecase ¶
func NewUserLoginUsecase( userRepo repository.UserRepository, userTokenRepo repository.UserTokenRepository, timeFactory timeutil.TimeFactory, uuid uuidstring.UUIDString, hashPass services.HashPass, jwt services.JWT, ) UserLoginUsecase
type UserMeUsecase ¶
type UserMeUsecase interface {
Execute(ctx context.Context, userID uuid.UUID) (entity.User, error)
}
func NewUserMeUsecase ¶
func NewUserMeUsecase(userRepo repository.UserRepository) UserMeUsecase
Source Files ¶
Click to show internal directories.
Click to hide internal directories.