Documentation ¶
Index ¶
- func ActivationEmail(activationLink string) string
- func CacheGet(ctx context.Context, key string) (string, error)
- func CacheSet(ctx context.Context, key string, value interface{}, expiration time.Duration) error
- func GenerateToken(email string, uuid string, function string, expFast bool) (string, error)
- func GenerateUUID() string
- func GetIPDeviceNameLocation(c *gin.Context) (string, string, string, error)
- func GetIPLocation(ipAddress string) (string, error)
- func HashingPassword(password string) (string, error)
- func NormalRequestVerifyToken(c *gin.Context) (string, string, error)
- func PaymentSuccessEmail(paymentUUID string, amount int64, currency string) string
- func SendActivationEmail(to string, token string) bool
- func StringToJSON(s string) interface{}
- func ValidateEmail(email string) bool
- func VerifyToken(tokenString string) (jwt.MapClaims, error)
- func VerifyUserPassword(password, hash string) bool
- type IPLocationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivationEmail ¶
func GenerateToken ¶
func GenerateUUID ¶
func GenerateUUID() string
func GetIPDeviceNameLocation ¶
func GetIPLocation ¶
func HashingPassword ¶
func PaymentSuccessEmail ¶
func SendActivationEmail ¶
func StringToJSON ¶
func StringToJSON(s string) interface{}
func ValidateEmail ¶
func VerifyToken ¶
func VerifyUserPassword ¶
Types ¶
type IPLocationResponse ¶
type IPLocationResponse struct {
CountryName string `json:"country_name"`
}
Click to show internal directories.
Click to hide internal directories.