Documentation ¶
Index ¶
- Variables
- type Captcha
- func (x *Captcha) Create(ctx context.Context, name string, code string, ttl time.Duration) string
- func (x *Captcha) Delete(ctx context.Context, name string) int64
- func (x *Captcha) Exists(ctx context.Context, name string) bool
- func (x *Captcha) Key(name string) string
- func (x *Captcha) Verify(ctx context.Context, name string, code string) error
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCaptchaNotExists = errors.NewPublic("the captcha does not exists") ErrCaptchaInconsistent = errors.NewPublic("tha captcha is invalid") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.