tc

package
v1.3.14 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCaptchaVerify = errors.New("captcha.verify.error")

Functions

This section is empty.

Types

type Captcha

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

func New

func New(cnf *Config) *Captcha

func (*Captcha) Verify

func (c *Captcha) Verify(req *VerifyReq) error

type Config

type Config struct {
	SecretID  string `json:"secretID" toml:"secretID"`
	SecretKey string `json:"secretKey" toml:"secretLey"`
	AppID     uint64 `json:"appid" toml:"appid"`
	AppSecret string `json:"appSecret" toml:"appSecret"`
}

type VerifyReq

type VerifyReq struct {
	Ticket  string
	Randstr string
	UserIP  string
	Mini    bool
}

Jump to

Keyboard shortcuts

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