controller

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL