z1captcha

package
v0.10.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewZ1captcha

func NewZ1captcha(params ...Param) (captcha *base64Captcha.NoStoreCaptcha)

Types

type Param

type Param struct {
	// Height png height in pixel.
	Height int `z1Default:"60"`
	// Width Captcha png width in pixel.
	Width int `z1Default:"180"`
	// DefaultLen Default number of digits in captcha solution.
	Length int `z1Default:"6"`
	// Captcha Timeout.
	Timeout int `z1Default:"300"`
	// Captcha's id length.
	IDLength int `z1Default:"10"`

	//NoiseCount text noise count.
	NoiseCount int `z1Default:"0"`
	//ShowLineOptions := OptionShowHollowLine | OptionShowSlimeLine | OptionShowSineLine .
	ShowLineOptions int `z1Default:"14"`
	//Source is a unicode which is the rand string from.
	Source string `z1Default:"1234567890abcdefghijklmnopqrstuvwxyz"`
	//Password used in no store for id
	Password string `z1Default:"myzero1"`
	//BgColor captcha image background color (optional)
	BgColor *color.RGBA
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL