Documentation ¶
Index ¶
- Variables
- func GetCodeFromRedis(rcli *redis.Client, strmobile string) (error, string)
- func MobileCodeNew(mobile string, str6num string) error
- func MobileCodeOld(code, mobile string)
- func SaveCodeToRedis(rcli *redis.Client, mct *MobileCodeTime) error
- func SendMobileCode(rcli *redis.Client, mct *MobileCodeTime, times, timediff int64) error
- type MobileCodeTime
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CodeMobileKeyPrefix = "code:mobile:"
)
Functions ¶
func MobileCodeNew ¶
func MobileCodeOld ¶
func MobileCodeOld(code, mobile string)
func SaveCodeToRedis ¶
func SaveCodeToRedis(rcli *redis.Client, mct *MobileCodeTime) error
func SendMobileCode ¶
func SendMobileCode(rcli *redis.Client, mct *MobileCodeTime, times, timediff int64) error
Types ¶
Click to show internal directories.
Click to hide internal directories.