Documentation
¶
Index ¶
- func NewClient() *http.Client
- type Comic
- type Config
- type Page
- type ZeroDownload
- func (zd *ZeroDownload) DownloadComic(urls []string)
- func (zd *ZeroDownload) DownloadImage(url, path string, retry *int)
- func (zd *ZeroDownload) DownloadPage(page Page, path string)
- func (zd *ZeroDownload) GetComicPageInfo(url string) *Comic
- func (zd *ZeroDownload) Requert(url string) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Cookie string `mapstructure:"cookie" json:"cookie"`
OutPath string `mapstructure:"outPath" json:"outPath"`
Limit int `mapstructure:"limit" json:"limit"`
Urls []string `mapstructure:"urls" json:"urls"`
}
func (*Config) LoadConfig ¶
type ZeroDownload ¶
func (*ZeroDownload) DownloadComic ¶
func (zd *ZeroDownload) DownloadComic(urls []string)
func (*ZeroDownload) DownloadImage ¶
func (zd *ZeroDownload) DownloadImage(url, path string, retry *int)
func (*ZeroDownload) DownloadPage ¶
func (zd *ZeroDownload) DownloadPage(page Page, path string)
func (*ZeroDownload) GetComicPageInfo ¶
func (zd *ZeroDownload) GetComicPageInfo(url string) *Comic
Click to show internal directories.
Click to hide internal directories.