dao

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(c context.Context, req *http.Request) (body []byte, err error)

Do handler request

func Get

func Get(c context.Context, uri string, params url.Values) (body []byte, err error)

Get client.Get send GET request

func NewRequest

func NewRequest(method, uri string, params url.Values) (req *http.Request, err error)

NewRequest new a http request.

func Post

func Post(c context.Context, uri string, params url.Values) (body []byte, err error)

Post client.Get send POST request

func PreProcess

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

PreProcess preprocessing the geetest and get to challenge

func Validate

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

Validate recheck the challenge code and get to seccode

Types

This section is empty.

Jump to

Keyboard shortcuts

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