extend

package
v1.2.1-sp6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GETIMGB64STR = `` /* 284-byte string literal not displayed */

Variables

This section is empty.

Functions

func GetPageSimilarity

func GetPageSimilarity(pageAHtml, pageBHtml string) float64

func LongestCommonSubsequence

func LongestCommonSubsequence(text1, text2 []string) int

Types

type CaptchaIdentifier

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

func CreateCaptcha

func CreateCaptcha() *CaptchaIdentifier

func (*CaptchaIdentifier) Detect

func (identifier *CaptchaIdentifier) Detect(generalElement *core.GeneralElement) (string, error)

func (*CaptchaIdentifier) SetIdentifyMode

func (identifier *CaptchaIdentifier) SetIdentifyMode(mode string)

func (*CaptchaIdentifier) SetIdentifyUrl

func (identifier *CaptchaIdentifier) SetIdentifyUrl(url string)

func (*CaptchaIdentifier) SetRequestStruct

func (identifier *CaptchaIdentifier) SetRequestStruct(req requestStructor)

func (*CaptchaIdentifier) SetResponseStruct

func (identifier *CaptchaIdentifier) SetResponseStruct(resp responseStructor)

type CaptchaRequest

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

func (*CaptchaRequest) GetBase64

func (req *CaptchaRequest) GetBase64() string

func (*CaptchaRequest) InputBase64

func (req *CaptchaRequest) InputBase64(b64 string)

func (*CaptchaRequest) InputMode

func (req *CaptchaRequest) InputMode(mode string)

type CaptchaResult

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

func (*CaptchaResult) GetErrorInfo

func (resp *CaptchaResult) GetErrorInfo() string

func (*CaptchaResult) GetResult

func (resp *CaptchaResult) GetResult() string

func (*CaptchaResult) GetSuccess

func (resp *CaptchaResult) GetSuccess() bool

Jump to

Keyboard shortcuts

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