captcha

package
v1.3.4-alpha5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CAPTCHA_URL = "http://101.35.184.3:19199/runtime/text/invoke"

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCaptcha

type BaseCaptcha interface {
	GetCaptcha() string
}

type Captcha

type Captcha struct {
	// captcha pic base64 code string
	Base64str string

	// captcha input element && captcha IMG element
	Feature_element *rod.Element

	//necessary domain
	Domain string

	// search captcha url
	CaptchaUrl string
	// contains filtered or unexported fields
}

func (*Captcha) GetCaptcha

func (cap *Captcha) GetCaptcha() (string, error)

func (*Captcha) SetCapElement

func (cap *Captcha) SetCapElement(c *rod.Element)

type CaptchaRequest

type CaptchaRequest struct {
	Project_name string `json:"project_name"`
	Image        string `json:"image"`
}

type CaptchaResult

type CaptchaResult struct {
	Uuid    string `json:"uuid"`
	Data    string `json:"data"`
	Success bool   `json:"success"`
}

type TestCaptcha

type TestCaptcha struct {
}

func (*TestCaptcha) GetCaptcha

func (testCap *TestCaptcha) GetCaptcha() string

Jump to

Keyboard shortcuts

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