Documentation ¶
Index ¶
- func FindCharacterFromMD5(md5 string) (string, error)
- func GetCookieFromEaGate(username string, password string, otp string, client util.EaClient) (*http.Cookie, error)
- func GetMD5FromImageData(imageData []byte) []byte
- func LoadImageDataFromUri(uri string) ([]byte, error)
- func SolveCaptcha(captchaData Captcha) (session string, correct string, err error)
- type Captcha
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCharacterFromMD5 ¶
FindCharacterFromMD5 will attempt to locate the Captcha MD5 in the existing MD5 slices. Returns the character name or unknown and an error if not found.
func GetCookieFromEaGate ¶
func GetCookieFromEaGate(username string, password string, otp string, client util.EaClient) (*http.Cookie, error)
GetCookieFromEaGate will submit a request to login as the given username with the provided password and optionally, otp.
func LoadImageDataFromUri ¶
LoadMD5OfImageURI will attempt to Get an image from the provided URI, and calculate the MD5 checksum of this image. Returns the MD5 checksum as a string and an error if the process fails.
Types ¶
Click to show internal directories.
Click to hide internal directories.