Documentation
¶
Index ¶
- type AuthService
- func (s *AuthService) ForgotPassword(email string) (string, error)
- func (s *AuthService) GetUserProfile(email string) (*model.User, error)
- func (s *AuthService) Login(loginRequest dto.LoginRequest) (*model.User, string, string, error)
- func (s *AuthService) Logout(tokenString string) error
- func (s *AuthService) Register(registerRequest dto.RegisterRequest) (*model.User, string, string, error)
- func (s *AuthService) ResetPassword(resetPasswordRequest dto.ResetPasswordRequest) error
- type EmailService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(userRepo repository.UserRepository, blacklistRepo repository.BlacklistRepository, emailService EmailService) *AuthService
func (*AuthService) ForgotPassword ¶
func (s *AuthService) ForgotPassword(email string) (string, error)
func (*AuthService) GetUserProfile ¶
func (s *AuthService) GetUserProfile(email string) (*model.User, error)
func (*AuthService) Login ¶
func (s *AuthService) Login(loginRequest dto.LoginRequest) (*model.User, string, string, error)
func (*AuthService) Logout ¶
func (s *AuthService) Logout(tokenString string) error
func (*AuthService) Register ¶
func (s *AuthService) Register(registerRequest dto.RegisterRequest) (*model.User, string, string, error)
func (*AuthService) ResetPassword ¶
func (s *AuthService) ResetPassword(resetPasswordRequest dto.ResetPasswordRequest) error
type EmailService ¶
func NewEmailService ¶
func NewEmailService() EmailService
type UserService ¶
func NewUserService ¶
func NewUserService(userRepo repository.UserRepository) UserService
Click to show internal directories.
Click to hide internal directories.