Documentation
¶
Index ¶
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 *postgres.UserRepository, jwtSecret string) *AuthService
func (*AuthService) Login ¶
func (s *AuthService) Login(req *models.LoginRequest) (*models.AuthResponse, error)
func (*AuthService) RefreshToken ¶
func (s *AuthService) RefreshToken(token string) (*models.AuthResponse, error)
func (*AuthService) Register ¶
func (s *AuthService) Register(req *models.RegisterRequest) error
type AuthServiceInterface ¶
type AuthServiceInterface interface { Register(req *models.RegisterRequest) error Login(req *models.LoginRequest) (*models.AuthResponse, error) RefreshToken(token string) (*models.AuthResponse, error) }
Click to show internal directories.
Click to hide internal directories.