Documentation ¶
Overview ¶
Package extend @Author bcy2007 2023/6/8 11:17
Index ¶
- Constants
- func GetPageSimilarity(pageAHtml, pageBHtml string) float64
- func LongestCommonSubsequence(text1, text2 []string) int
- func TestDDDDOcr()
- type CaptchaIdentifier
- func (identifier *CaptchaIdentifier) Detect(generalElement *core.GeneralElement) (string, error)
- func (identifier *CaptchaIdentifier) SetIdentifyMode(mode string)
- func (identifier *CaptchaIdentifier) SetIdentifyUrl(url string)
- func (identifier *CaptchaIdentifier) SetRequestStruct(req requestStructor)
- func (identifier *CaptchaIdentifier) SetResponseStruct(resp responseStructor)
- type CaptchaRequest
- type CaptchaResult
- type DDDDCaptcha
- type DDDDResult
Constants ¶
View Source
const GETIMGB64STR = `` /* 284-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func GetPageSimilarity ¶
func TestDDDDOcr ¶ added in v1.2.2
func TestDDDDOcr()
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) GeneratorData ¶ added in v1.2.2
func (req *CaptchaRequest) GeneratorData() interface{}
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
type DDDDCaptcha ¶ added in v1.2.2
type DDDDCaptcha struct {
// contains filtered or unexported fields
}
func (*DDDDCaptcha) GeneratorData ¶ added in v1.2.2
func (dddd *DDDDCaptcha) GeneratorData() interface{}
func (*DDDDCaptcha) GetBase64 ¶ added in v1.2.2
func (dddd *DDDDCaptcha) GetBase64() string
func (*DDDDCaptcha) InputBase64 ¶ added in v1.2.2
func (dddd *DDDDCaptcha) InputBase64(b64 string)
func (*DDDDCaptcha) InputMode ¶ added in v1.2.2
func (dddd *DDDDCaptcha) InputMode(string)
type DDDDResult ¶ added in v1.2.2
type DDDDResult struct { Status int `json:"status"` Result string `json:"result"` Message string `json:"msg"` }
func (*DDDDResult) GetErrorInfo ¶ added in v1.2.2
func (dddd *DDDDResult) GetErrorInfo() string
func (*DDDDResult) GetResult ¶ added in v1.2.2
func (dddd *DDDDResult) GetResult() string
func (*DDDDResult) GetSuccess ¶ added in v1.2.2
func (dddd *DDDDResult) GetSuccess() bool
Click to show internal directories.
Click to hide internal directories.