tencentcaptcha

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: BSD-3-Clause Imports: 2 Imported by: 2

README

Tencent Captcha 腾讯验证码

Build Status Coverage Status Go.Dev reference Go Report Card Release

Usage

$ go get clevergo.tech/tencentcaptcha

Example

Checkout example for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

Application contains captcha's infomation, such as application ID, secret key.

func New

func New(client *captcha.Client, id uint64, secretKey string) *Application

New returns a captcha application with the given client, application ID and secret key.

func (*Application) ID

func (app *Application) ID() uint64

ID returns the application ID.

func (*Application) Verify

func (app *Application) Verify(ticket, randstr, ipAddr string) error

Verify verifies whether is captcha info is valid.

Jump to

Keyboard shortcuts

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