Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func CreateToken(getUser *entity.MasterUser) (string, error)
- func ExtractToken(c *fiber.Ctx) string
- func ExtractTokenMetadata(c *fiber.Ctx) (*models.JwtCustomClaims, error)
- func GetMonthRageFromQuarter(quarter string) []int
- func GetQuarter(currentMonth int64) string
- func HashedPassword(password string) string
- func IsBirthdayValid(birthday string) bool
- func IsEmailValid(email string) bool
- func IsNumeric(strings string) bool
- func IsPasswordValid(password string) bool
- func NextPage(page, totalPages int) int
- func Offset(page, limit int) int
- func PrevPage(page int) int
- func SortedBy(sort []string) []string
- func TotalPages(count, limit int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func CreateToken ¶
func CreateToken(getUser *entity.MasterUser) (string, error)
func ExtractToken ¶
func ExtractToken(c *fiber.Ctx) string
func ExtractTokenMetadata ¶
func ExtractTokenMetadata(c *fiber.Ctx) (*models.JwtCustomClaims, error)
func GetMonthRageFromQuarter ¶
func GetQuarter ¶
func HashedPassword ¶
func IsBirthdayValid ¶
func IsEmailValid ¶
func IsPasswordValid ¶
func TotalPages ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.