geetest

package module
v0.0.0-...-39c0959 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: MIT Imports: 8 Imported by: 0

README

Geetest SDK for Golang

This SDK is made by personal, not the official version

Installation

go get -u github.com/Secbone/geetest

Usage

import "github.com/Secbone/geetest"

tester := geetest.New(ID, KEY)

info := tester.Register()

result := tester.Validate(fallback, challenge, validate, seccode)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5

func Md5(source string) string

Types

type RegisterResp

type RegisterResp struct {
	Challenge string `json:"challenge"`
}

type RegisterResult

type RegisterResult struct {
	Success    int
	Challenge  string
	Gt         string
	NewCaptcha bool
}

type Tester

type Tester interface {
	Register() RegisterResult
	Validate(bool, string, string, string) bool
}

func New

func New(id string, key string) Tester

type ValidateResp

type ValidateResp struct {
	SecCode string `json:"seccode"`
}

Jump to

Keyboard shortcuts

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