Documentation ¶
Index ¶
- Constants
- func CreateMap(updateFields []string, updateValues ...interface{}) map[string]interface{}
- func CtxToAuth(c *fiber.Ctx) (string, string, error)
- func GenerateJwtAdmin(userId int, username string, password string) (string, int64, error)
- func GenerateJwtStaff(userId int, username string, dutyLocationId int) (string, int64, error)
- func GetTimeNowString() string
- func JsonToMap(j interface{}) (map[string]interface{}, error)
- func Max(a, b int) int
- func Min(a, b int) int
- func TimeInt64ToString(timeInt int64) string
- func ValidateJwtToken(token string) (bool, error)
- type Claims
Constants ¶
View Source
const SECRET_KEY = "some_secret_key_val_123123"
Variables ¶
This section is empty.
Functions ¶
func GenerateJwtAdmin ¶
func GenerateJwtStaff ¶
func GetTimeNowString ¶
func GetTimeNowString() string
func TimeInt64ToString ¶
func ValidateJwtToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.