Documentation ¶
Index ¶
- func ComparePassword(hashPassword string, password string) error
- func ErrorResponse(c *gin.Context, data model.ServiceResponse)
- func GenerateRandomInt(n int) string
- func GenerateRandomString(n int) string
- func GetUserLoginData(c *gin.Context) model.UserTokenData
- func HashPassword(password string) (string, error)
- func SignJWT(Data map[string]interface{}, ExpiredAt time.Duration) (string, error)
- func SuccessResponse(c *gin.Context, data model.ServiceResponse)
- func VerifyTokenHeader(c *gin.Context) (*jwt.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func ErrorResponse ¶
func ErrorResponse(c *gin.Context, data model.ServiceResponse)
func GenerateRandomInt ¶
func GenerateRandomString ¶
func GetUserLoginData ¶
func GetUserLoginData(c *gin.Context) model.UserTokenData
func HashPassword ¶
func SuccessResponse ¶
func SuccessResponse(c *gin.Context, data model.ServiceResponse)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.