Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CR ¶
type CR struct { // id 验证码ID Id string `json:"id"` // B64 b64s 验证码图片 B64 string `json:"b64"` // Value 验证码值 Value string `json:"value"` // Clear 是否清除 Clear bool `json:"clear"` // Length 验证码长度 Length int `json:"length"` }
CR 验证码
type RedisStore ¶
type RedisStore struct { // Expiration 验证码过期时间 Expiration time.Duration // PreKey 前缀 PreKey string }
RedisStore redis存储
func NewRedisStore ¶
func NewRedisStore() *RedisStore
Click to show internal directories.
Click to hide internal directories.