Documentation ¶
Index ¶
- Constants
- type Geetest
- func (gt *Geetest) FailbackValidate(challenge, validate, seccode string) bool
- func (gt *Geetest) GetResponseMap() map[string]interface{}
- func (gt *Geetest) GetResponseStr() string
- func (gt *Geetest) PreProcess(userID string) int
- func (gt *Geetest) SuccessValidate(challenge, validate, seccode, userID string) bool
Constants ¶
View Source
const ( FN_CHALLENGE = "geetest_challenge" FN_VALIDATE = "geetest_validate" FN_SECCODE = "geetest_seccode" GT_STATUS_SESSION_KEY = "gt_server_status" API_URL = "http://api.geetest.com" REGISTER_HANDLER = "/register.php" VALIDATE_HANDLER = "/validate.php" VERSION = "go_3.2.1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Geetest ¶
type Geetest struct {
// contains filtered or unexported fields
}
func GeetestLib ¶
CreateGeeTest 创建GeetestLib实例
func (*Geetest) FailbackValidate ¶
FailbackValidate failback模式的二次验证方式.在本地对轨迹进行简单的判断返回验证结果.
func (*Geetest) GetResponseMap ¶
func (*Geetest) GetResponseStr ¶
func (*Geetest) SuccessValidate ¶
SuccessValidate 正常模式的二次验证方式.向geetest server 请求验证结果.
Click to show internal directories.
Click to hide internal directories.