Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
func NewAuthService ¶
func NewAuthService(jwtKey []byte, db *sql.DB) *AuthService
func (*AuthService) GenerateJWT ¶
func (s *AuthService) GenerateJWT(userId uint) (string, error)
func (*AuthService) Login ¶
func (h *AuthService) Login(c *gin.Context)
func (*AuthService) ParseToken ¶
func (s *AuthService) ParseToken(tokenString string) (*jwt.Token, error)
func (*AuthService) Register ¶
func (h *AuthService) Register(c *gin.Context)
type LoginRequest ¶
type RegisterRequest ¶
Click to show internal directories.
Click to hide internal directories.