Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var MailConnection *gomail.Dialer
=============================================== GOMAIL =============================================== // email connection
var RedisClient *redis.Client
=============================================== REDIS =============================================== // redis connection
Functions ¶
func ConnectionInit ¶
func ConnectionInit(mailConfig MailConfig, redisConfig RedisConfig)
=============================================== CONNECTION INIT =============================================== //
func GenerateAndSendOTP ¶
=============================================== GENERATE OTP AND SEND IT BY EMAIL =============================================== //
Types ¶
type MailConfig ¶
=============================================== MAIL CONFIG =============================================== //
type RedisConfig ¶
=============================================== REDIS CONFIG =============================================== //