Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthController ¶
type AuthController struct { AuthUsecase domain.AuthUsecase Timeout time.Duration JsonWebToken security.JsonWebTokenSecurity JWTExpireHour int TokenType string }
func (*AuthController) Auth ¶
func (a *AuthController) Auth(g *gin.Context)
Auth is a method of the AuthController struct that handles the authentication logic. @Summary Authenticate a user @Description Authenticate a user @Tags Auth @Accept json @Produce json @Param data body domain.AuthRequest true "AuthRequest" @Success 200 {object} domain.AuthResponse @Failure 400 {object} domain.HttpError @Failure 500 {object} domain.HttpError @Router /auth [post]
Click to show internal directories.
Click to hide internal directories.