utils

package
v0.0.0-...-072ee57 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolAddr

func BoolAddr(b bool) *bool

func CheckDomain

func CheckDomain(email string) bool

func GetHostName

func GetHostName(userid int, level int) string

func GetInstanceName

func GetInstanceName(userid int, level int) string

func Hash

func Hash(secret string) string

func Int64Addr

func Int64Addr(i string) *int64

func SendVerificationMail

func SendVerificationMail(user *models.User) error

func StringAddr

func StringAddr(s string) *string

func UpdateKey

func UpdateKey(key string) error

func ValidateLoginInput

func ValidateLoginInput(creds *models.Creds) (bool, string)

func ValidateRegisterInput

func ValidateRegisterInput(regInput *models.User) (bool, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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