Documentation
¶
Index ¶
- type Dao
- func (d *Dao) AddTokenCache(c context.Context, key string, ttl int32) (err error)
- func (d *Dao) CaptchaCache(c context.Context, token string) (code string, isInit bool, err error)
- func (d *Dao) Close()
- func (d *Dao) DelCaptchaCache(c context.Context, token string) (err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) UpdateTokenCache(c context.Context, token, code string, ttl int32) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao captcha service Dao.
func (*Dao) AddTokenCache ¶
AddTokenCache add token redis cache.
func (*Dao) CaptchaCache ¶
CaptchaCache get captcha cache.
func (*Dao) DelCaptchaCache ¶
DelCaptchaCache delete captcha cache.
Click to show internal directories.
Click to hide internal directories.