Documentation
¶
Index ¶
- type CaptchaClient
- func (c *CaptchaClient) Decode(timeout uint8) (int, error)
- func (c *CaptchaClient) GetText() string
- func (c *CaptchaClient) ParamToString()
- func (c *CaptchaClient) PollCaptcha(id int) error
- func (c *CaptchaClient) UpdatePollRate(rate int8) error
- func (c *CaptchaClient) UpdateProxy(proxy string)
- func (c *CaptchaClient) UpdateURL(url string)
- type CaptchaStatus
- type CaptchaStatusReal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptchaClient ¶
type CaptchaClient struct { Username string Password string SiteKey string SiteURL string Proxy string ProxyType string JSONString string Timeout uint8 //180 is the max PollRate int8 //5 seconds LastStatus CaptchaStatus }
CaptchaClient is used to send captcha to DBC servers
func (*CaptchaClient) Decode ¶
func (c *CaptchaClient) Decode(timeout uint8) (int, error)
Decode sends the captcha to dbc servers
func (*CaptchaClient) GetText ¶
func (c *CaptchaClient) GetText() string
GetText returns the text from the captcha
func (*CaptchaClient) ParamToString ¶
func (c *CaptchaClient) ParamToString()
ParamToString turns variables into hardcoded json string. DBC hires cheap coders, gets cheap programs... and it's a pain to accomodate
func (*CaptchaClient) PollCaptcha ¶
func (c *CaptchaClient) PollCaptcha(id int) error
PollCaptcha keeps sending a get request to dbc for updated captcha results
func (*CaptchaClient) UpdatePollRate ¶
func (c *CaptchaClient) UpdatePollRate(rate int8) error
UpdatePollRate updates the polling rate
func (*CaptchaClient) UpdateProxy ¶
func (c *CaptchaClient) UpdateProxy(proxy string)
UpdateProxy updates the currently set proxy in the captcha client
func (*CaptchaClient) UpdateURL ¶
func (c *CaptchaClient) UpdateURL(url string)
UpdateURL is used for registration pages that may have account-based parameters in their fields
type CaptchaStatus ¶
CaptchaStatus is the struct returned when polling a captchas status
Click to show internal directories.
Click to hide internal directories.