Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArchiveRegex = regexp.MustCompile("^(.+)-(.*)\\.(?:tar\\.[^.]+|zip)$")
ArchiveRegex matches archive filenames
View Source
var HTTPDConfig = Config{ Location: LocationConfig{ Index: 1, XML: true, Pattern: regexp.MustCompile(">(.+)<"), }, Modified: TimeConfig{ Index: 2, Layout: "2006-01-02 15:04", }, }
HTTPDConfig is a configuration for a standard Apache httpd directory listing
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Location LocationConfig Modified TimeConfig }
Config is a configuration for parsing a listing
type DownloadList ¶
type DownloadList struct { Name xml.Name Entry []struct { Columns []struct { XML string `xml:",innerxml"` Raw string `xml:",chardata"` } `xml:"td"` } `xml:"body>table>tr"` }
DownloadList represents an HTML file listing
type LocationConfig ¶
LocationConfig is a configuration for the Location field in the listing
type Provider ¶
type Provider struct{}
Provider is the upstream provider interface for HTML
type TimeConfig ¶
TimeConfig is a configuration for the Modified field in the listing
Click to show internal directories.
Click to hide internal directories.