utils

package
v0.0.0-...-0ec8832 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(c *gin.Context, obj interface{}) error

func DecryptPassword

func DecryptPassword(hashedPassword string, formPassword string) error

func EncryptPassword

func EncryptPassword(pass string) string

func FindParamInRequest

func FindParamInRequest(c *gin.Context, param string) string

func FormatFloatToString

func FormatFloatToString(float float64) string

func FormatIntToString

func FormatIntToString(integer int64) string

func GetJWTSecret

func GetJWTSecret() string

func InterpretEnum

func InterpretEnum(entity string, code int8) string

func IsValidEmail

func IsValidEmail(e string) bool

the following function does not check whether the email is registered

func RemoveCharacter

func RemoveCharacter(s, chartype string) string

func StripBearerPrefixFromTokenString

func StripBearerPrefixFromTokenString(token string) (string, error)

keep the string after the "TOKEN-" part of the string

Types

type Before

type Before struct {
	// contains filtered or unexported fields
}

type Constructed

type Constructed struct {
	Before
}

Jump to

Keyboard shortcuts

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