Documentation ¶
Index ¶
- type Audio
- type Captcha
- type Option
- func WithBgColor(bgColor string) Option
- func WithCaptchaLen(captchaLen int) Option
- func WithCharacterCaptchaLen(captchaLen int) Option
- func WithEngine(engine VerifyType) Option
- func WithHeight(height int) Option
- func WithLanguage(language string) Option
- func WithNoiseCount(noiseCount int) Option
- func WithOptionShowHollowLine(showHollowLine bool) Option
- func WithOptionShowSineLine(showSineLine bool) Option
- func WithOptionShowSlimeLine(showSlimeLine bool) Option
- func WithWidth(width int) Option
- type Options
- type RedisStore
- type Store
- type VerifyType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func WithBgColor ¶
func WithCaptchaLen ¶
func WithCharacterCaptchaLen ¶
func WithEngine ¶
func WithEngine(engine VerifyType) Option
func WithHeight ¶
func WithLanguage ¶
func WithNoiseCount ¶
func WithOptionShowSineLine ¶
func WithOptionShowSlimeLine ¶
type Options ¶
type Options struct { Engine VerifyType OptionShowSineLine bool OptionShowSlimeLine bool OptionShowHollowLine bool Height int Width int CaptchaLen int NoiseCount int BgColor string Audio Audio }
func (*Options) GetShowLine ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func (*RedisStore) Provide ¶
func (r *RedisStore) Provide(_ context.Context) interface{}
type VerifyType ¶
type VerifyType uint8
const ( VerifyTypeDigit VerifyType = iota + 1 // 1 数字验证码 VerifyTypeCharacter // 2 字符验证码 VerifyTypeAudio // 3 音频验证码 VerifyTypeLanguage // 4 语言验证码 VerifyTypeMath // 5 数学验证码 VerifyTypeChinese // 6 中文验证码 )
Click to show internal directories.
Click to hide internal directories.