geetest

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(c *conf.HTTPClient) (client *http.Client)

NewClient new a http client.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao is account dao.

func New

func New(c *conf.Config) (d *Dao)

New new a dao.

func (*Dao) PreProcess

func (d *Dao) PreProcess(c context.Context, mid int64, ip, clientType string, newCaptcha int) (challenge string, err error)

PreProcess preprocessing the geetest and get to challenge

func (*Dao) Validate

func (d *Dao) Validate(c context.Context, challenge, seccode, clientType, ip, captchaID string, mid int64) (res *geetest.ValidateRes, err error)

Validate recheck the challenge code and get to seccode

Jump to

Keyboard shortcuts

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