Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface { Login(user request.LoginRequest) response.Response Register(user request.CreateUserRequest) response.Response RefreshToken(user request.CreateUserRequest) response.Response }
func NewAuthServiceImpl ¶
func NewAuthServiceImpl(userRepo userrepository.UserRepository, validate *validator.Validate) AuthService
type AuthServiceImpl ¶
type AuthServiceImpl struct { UserRepo userrepository.UserRepository Validate *validator.Validate }
func (*AuthServiceImpl) Login ¶
func (a *AuthServiceImpl) Login(user request.LoginRequest) response.Response
Login implements AuthService.
func (*AuthServiceImpl) RefreshToken ¶
func (a *AuthServiceImpl) RefreshToken(user request.CreateUserRequest) response.Response
Refresh impements AuthService.
func (*AuthServiceImpl) Register ¶
func (a *AuthServiceImpl) Register(user request.CreateUserRequest) response.Response
Register implements AuthService.
Click to show internal directories.
Click to hide internal directories.