Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func GenerateToken(userID uuid.UUID, userRoles []domain.UserRole, claimsParam ShouldClaims) (generatedToken string, err error)
- func GenerateUUID() string
- func HashPassword(password string) (string, error)
- func SendEmail(emailChan chan *Email) error
- func Ternary[T comparable](value1, value2 T) T
- type Email
- type JwtCustomClaims
- type ShouldClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GenerateToken ¶
func GenerateUUID ¶
func GenerateUUID() string
func HashPassword ¶
func Ternary ¶
func Ternary[T comparable](value1, value2 T) T
Types ¶
type JwtCustomClaims ¶
type ShouldClaims ¶
Click to show internal directories.
Click to hide internal directories.