Documentation ¶
Index ¶
- Constants
- Variables
- func Download(url string, output string, showProgress bool) error
- func DownloadLinksInHtml(url string, regex string, output string)
- func FilePathHandler(respWriter http.ResponseWriter, request *http.Request)
- func GetHtml(url string) *goquery.Document
- func GetLinks(url string, regex string) list.List
- func SimpleHttpFS() error
- func UrlJoin(url1 string, url2 string) string
- type HTTPFSConfig
- type HttpDownloader
- type HttpFile
- type WebFile
Constants ¶
View Source
const ( KB = 1024 MB = KB * 1024 GB = MB * 1024 )
Variables ¶
View Source
var HTML = `` /* 924-byte string literal not displayed */
Functions ¶
func DownloadLinksInHtml ¶
func FilePathHandler ¶
func FilePathHandler(respWriter http.ResponseWriter, request *http.Request)
func SimpleHttpFS ¶
func SimpleHttpFS() error
Types ¶
type HttpDownloader ¶ added in v0.0.6
type HttpDownloader struct {
Output string
}
func (HttpDownloader) Download ¶ added in v0.0.6
func (downloader HttpDownloader) Download(file *HttpFile) error
Click to show internal directories.
Click to hide internal directories.