utils

package
v0.0.0-...-cfa0982 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

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 GetMonthRageFromQuarter(quarter string) []int

func GetQuarter

func GetQuarter(currentMonth int64) string

func HashedPassword

func HashedPassword(password string) string

func IsBirthdayValid

func IsBirthdayValid(birthday string) bool

func IsEmailValid

func IsEmailValid(email string) bool

func IsNumeric

func IsNumeric(strings string) bool

func IsPasswordValid

func IsPasswordValid(password string) bool

func NextPage

func NextPage(page, totalPages int) int

func Offset

func Offset(page, limit int) int

func PrevPage

func PrevPage(page int) int

func SortedBy

func SortedBy(sort []string) []string

func TotalPages

func TotalPages(count, limit int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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