internal

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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 AuthForm

func AuthForm(a login.Auth) url.Values

func ExtractKey

func ExtractKey(doc *html.Node) (string, error)

func IsInvalidLogin

func IsInvalidLogin(res *http.Response) bool

func IsLoginRequired

func IsLoginRequired(res *http.Response) bool

func IsRedirect

func IsRedirect(res *http.Response) bool

func IsRedirectToLocation

func IsRedirectToLocation(res *http.Response, location string) bool

func IsSuccessfulLogin

func IsSuccessfulLogin(res *http.Response) bool

func SearchForm

func SearchForm(s *search.Params) url.Values

Types

This section is empty.

Jump to

Keyboard shortcuts

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