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.

          Source Files