Documentation ¶
Index ¶
- func CheckOldPasswordHash(password string, hash string) bool
- func CheckPasswordHash(password string, hash string) bool
- func Contains[T string | int](arr []T, item T) bool
- func ContainsString(arr []string, item string) bool
- func GenerateRandomString(length int) string
- func GetMD5Hash(password string) string
- func GetUserID(c *fiber.Ctx) (string, global.ErrorResponse)
- func HashPassword(password string) string
- func ValidateBody(c *fiber.Ctx, request any) global.ErrorResponse
- func ValidateHeader(c *fiber.Ctx, header any) global.ErrorResponse
- func ValidateParam(c *fiber.Ctx, param any) global.ErrorResponse
- func ValidateQuery(c *fiber.Ctx, query any) global.ErrorResponse
- func ValidateStruct(request any) []dto.ValidationError
- type Tx
- type TxManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOldPasswordHash ¶
func CheckPasswordHash ¶
func ContainsString ¶
func GenerateRandomString ¶
func GetMD5Hash ¶
func GetUserID ¶
func GetUserID(c *fiber.Ctx) (string, global.ErrorResponse)
func HashPassword ¶
func ValidateBody ¶
func ValidateBody(c *fiber.Ctx, request any) global.ErrorResponse
func ValidateHeader ¶
func ValidateHeader(c *fiber.Ctx, header any) global.ErrorResponse
func ValidateParam ¶
func ValidateParam(c *fiber.Ctx, param any) global.ErrorResponse
func ValidateQuery ¶
func ValidateQuery(c *fiber.Ctx, query any) global.ErrorResponse
func ValidateStruct ¶
func ValidateStruct(request any) []dto.ValidationError
Types ¶
Click to show internal directories.
Click to hide internal directories.