geetest

package module
v0.0.0-...-d544862 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2017 License: MIT Imports: 5 Imported by: 5 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GT-Golang-SDK

Documentation

Index

Constants

View Source
const (
	VERSION      = "0.1"
	BASE_URL     = "http://api.geetest.com/get.php"
	API_SERVER   = "http://api.geetest.com/validate.php"
	API_REGISTER = "http://api.geetest.com/register.php"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GeeTest

type GeeTest struct {
	CaptchId   string
	PrivateKey string
}

func NewGeeTest

func NewGeeTest(captchId, privateKey string) GeeTest

func (GeeTest) Challenge

func (geeTest GeeTest) Challenge() string

func (GeeTest) EmbedURL

func (geeTest GeeTest) EmbedURL() string

func (GeeTest) PopupURL

func (geeTest GeeTest) PopupURL(popupBtnId string) string

func (GeeTest) Validate

func (geeTest GeeTest) Validate(challenge, validate, seccode string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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