Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCaptcha ¶
func NewCaptcha(conf Config, store base64Captcha.Store) (*base64Captcha.Captcha, error)
Types ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func NewRedisStore ¶
func NewRedisStore(redis *redis.Client, expireTime time.Duration, prefix string) *RedisStore
func (RedisStore) Get ¶
func (r RedisStore) Get(id string, clear bool) string
Get 通过id从redis中获取验证码 clear 为 true 时会删除验证码
func (RedisStore) GetId ¶
func (r RedisStore) GetId(id string) string
Click to show internal directories.
Click to hide internal directories.