Documentation ¶
Index ¶
- Constants
- func AuthForm(a login.Auth) url.Values
- func ExtractKey(doc *html.Node) (string, error)
- func IsInvalidLogin(res *http.Response) bool
- func IsLoginRequired(res *http.Response) bool
- func IsRedirect(res *http.Response) bool
- func IsRedirectToLocation(res *http.Response, location string) bool
- func IsSuccessfulLogin(res *http.Response) bool
- func SearchForm(s *search.Params) url.Values
Constants ¶
View Source
const ErrActivityUnexpectedResponseCode = "fetching activity failed: unexpected response code: %d"
View Source
const ErrApiKeyEmpty = "api key is empty"
View Source
const ErrDetailsUnexpectedResponseCode = "failed to fetch details: unexpected response code: %d"
View Source
const ErrDownloadUnexpectedResponseCode = "download failed: unexpected response code: %d"
View Source
const ErrLoginInvalidCredentials = "login failed: invalid BasicAuth"
View Source
const ErrLoginKeyMissing = "login failed: unable to find login key in response"
View Source
const ErrLoginKeyParse = "login failed: login key cannot be parsed"
View Source
const ErrLoginMissingCredentials = "login failed: user name or password is empty"
View Source
const ErrLoginUnableToFetchIndex = "login failed: unable to fetch index page"
View Source
const ErrLoginUnexpectedResponse = "login failed: unexpected response"
View Source
const ErrSearchUnexpectedResponseCode = "search failed: unexpected response code: %d"
View Source
const ErrUserNotLoggedIn = "user is not logged in"
View Source
const LocationIndex = "index.php"
View Source
const LocationLogin = "login.php"
View Source
const LocationLoginProblem = "problema"
View Source
const UrlActivity = "/hitnrun.php"
View Source
const UrlIndex = "/index.php"
View Source
const UrlLogin = "/login.php"
View Source
const UrlRecommended = "/recommended.php"
View Source
const UrlTorrents = "/torrents.php"
Variables ¶
This section is empty.
Functions ¶
func IsInvalidLogin ¶
func IsLoginRequired ¶
func IsRedirect ¶
func IsSuccessfulLogin ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.