Documentation ¶
Index ¶
- type Audio
- type AudioOption
- type Captcha
- type Chinese
- type ChineseOption
- func ChineseBGColor(color *color.RGBA) ChineseOption
- func ChineseFonts(fonts []string) ChineseOption
- func ChineseHeight(height int) ChineseOption
- func ChineseLength(length int) ChineseOption
- func ChineseNoiseCount(count int) ChineseOption
- func ChineseSource(source string) ChineseOption
- func ChineseWidth(width int) ChineseOption
- type Digit
- type DigitOption
- type Math
- type MathOption
- type Str
- type StringOption
- func StringBGColor(color *color.RGBA) StringOption
- func StringFonts(fonts []string) StringOption
- func StringHeight(height int) StringOption
- func StringLength(length int) StringOption
- func StringNoiseCount(count int) StringOption
- func StringSource(source string) StringOption
- func StringWidth(width int) StringOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioOption ¶
type AudioOption func(*Audio)
AudioOption is a function that receives a pointer of audio driver.
func AudioLangauge ¶
func AudioLangauge(language string) AudioOption
AudioLangauge sets audio language.
type Captcha ¶
type Captcha struct {
// contains filtered or unexported fields
}
func (*Captcha) EncodeToString ¶
ID implements Captcha.EncodeToString.
func (*Captcha) IsTagAudio ¶
type Chinese ¶
type Chinese struct {
// contains filtered or unexported fields
}
func NewChinese ¶
func NewChinese(opts ...ChineseOption) *Chinese
NewChinese returns a chinese driver.
type ChineseOption ¶
type ChineseOption func(*Chinese)
ChineseOption is a function that receives a pointer of chinese driver.
func ChineseBGColor ¶
func ChineseBGColor(color *color.RGBA) ChineseOption
ChineseBGColor sets background color.
func ChineseNoiseCount ¶
func ChineseNoiseCount(count int) ChineseOption
ChineseNoiseCount sets noise count.
type DigitOption ¶
type DigitOption func(*Digit)
DigitOption is a function that receives a pointer of digit driver.
type MathOption ¶
type MathOption func(*Math)
MathOption is a function that receives a pointer of math driver.
func MathBGColor ¶
func MathBGColor(color *color.RGBA) MathOption
MathBGColor sets background color.
type StringOption ¶
type StringOption func(*Str)
StringOption is a function that receives a pointer of string driver.
func StringBGColor ¶
func StringBGColor(color *color.RGBA) StringOption
StringBGColor sets background color.
func StringNoiseCount ¶
func StringNoiseCount(count int) StringOption
StringNoiseCount sets noise count.