utils

package
v0.8.25 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath() string

func AuthUser

func AuthUser(value interface{}, uniqField string) (map[string]interface{}, error)

func AuthUserFromContext

func AuthUserFromContext(c *fiber.Ctx) *models.User

func AuthUserObject

func AuthUserObject(c *fiber.Ctx) (map[string]interface{}, error)

func AuthUserOracle

func AuthUserOracle(c *fiber.Ctx) *models.USERSOracle

func AuthUserUUID

func AuthUserUUID(c *fiber.Ctx) *models.UserUUID

func AutoMigrateSeed

func AutoMigrateSeed()

func CheckCurrentPassword

func CheckCurrentPassword(c *fiber.Ctx) error

func GetRole

func GetRole(role interface{}) int64

func Hash

func Hash(str string) (string, error)

func IsSame

func IsSame(str string, hashed string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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