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() AuthService
func (AuthService) Login ¶
func (service AuthService) Login(req dto.LoginRequest) (*dto.TokenResponse, error)
type JWTService ¶
type JWTService struct{}
func NewJWTService ¶
func NewJWTService() JWTService
func (JWTService) GenerateToken ¶
func (service JWTService) GenerateToken(username string) (string, error)
func (JWTService) ParseTokenWithClaims ¶
func (service JWTService) ParseTokenWithClaims(tokenString string) (*JWTClaims, bool, error)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService() UserService
func (UserService) Register ¶
func (service UserService) Register(req dto.RegisterRequest) error
Click to show internal directories.
Click to hide internal directories.