You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ntool-biz/core/captcha/conf.go

9 lines
537 B
Go

package captcha
type Config struct {
KeyLen int `json:",optional,default=4,env=CAPTCHA_KEY_LEN"` // captcha length
ImgWidth int `json:",optional,default=240,env=CAPTCHA_IMG_WIDTH"` // captcha width
ImgHeight int `json:"optional,default=80,env=CAPTCHA_IMG_HEIGHT"` // captcha height
Driver string `json:",optional,default=string,options=[digit,string,math,chinese],env=CAPTCHA_DRIVER"` // captcha type
}