downloader

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloaderCommand

func DownloaderCommand() *cli.Command

Types

type AddBookmark

type AddBookmark struct {
	BaseHandler
}

func (*AddBookmark) HandlerRequest

func (a *AddBookmark) HandlerRequest(ctx *cli.Context, dl *Downloader)

func (*AddBookmark) IsCanHandler

func (a *AddBookmark) IsCanHandler(ctx *cli.Context, dl *Downloader) bool

type BaseHandler

type BaseHandler struct {
	NextHandler Chain
}

func (*BaseHandler) SetNext

func (b *BaseHandler) SetNext(handler Chain)

type Chain

type Chain interface {
	SetNext(handler Chain)
	HandlerRequest(ctx *cli.Context, dl *Downloader)
	IsCanHandler(ctx *cli.Context, dl *Downloader) bool
}

type ClearTmpFile

type ClearTmpFile struct {
	BaseHandler
}

func (*ClearTmpFile) HandlerRequest

func (c *ClearTmpFile) HandlerRequest(ctx *cli.Context, dl *Downloader)

func (*ClearTmpFile) IsCanHandler

func (c *ClearTmpFile) IsCanHandler(ctx *cli.Context, dl *Downloader) bool

type CreatePdf

type CreatePdf struct {
	BaseHandler
}

func (*CreatePdf) HandlerRequest

func (c *CreatePdf) HandlerRequest(ctx *cli.Context, dl *Downloader)

func (*CreatePdf) IsCanHandler

func (c *CreatePdf) IsCanHandler(ctx *cli.Context, dl *Downloader) bool

type Download

type Download struct {
	BaseHandler
}

func (*Download) HandlerRequest

func (d *Download) HandlerRequest(ctx *cli.Context, dl *Downloader)

func (*Download) IsCanHandler

func (d *Download) IsCanHandler(ctx *cli.Context, dl *Downloader) bool

type Downloader

type Downloader struct {
	command.DebugLog

	ZLog zerolog.Logger
	// contains filtered or unexported fields
}

func (*Downloader) EnableDebug

func (d *Downloader) EnableDebug() bool

func (*Downloader) Execute

func (d *Downloader) Execute(ctx *cli.Context) error

func (*Downloader) PrintLog

func (d *Downloader) PrintLog(key string, value ...any)

type PrintFinishTipsHandler

type PrintFinishTipsHandler struct {
	BaseHandler
}

func (*PrintFinishTipsHandler) HandlerRequest

func (p *PrintFinishTipsHandler) HandlerRequest(ctx *cli.Context, dl *Downloader)

func (*PrintFinishTipsHandler) IsCanHandler

func (p *PrintFinishTipsHandler) IsCanHandler(ctx *cli.Context, dl *Downloader) bool

type SortImage

type SortImage struct {
	BaseHandler
}

func (*SortImage) HandlerRequest

func (s *SortImage) HandlerRequest(ctx *cli.Context, dl *Downloader)

func (*SortImage) IsCanHandler

func (s *SortImage) IsCanHandler(ctx *cli.Context, dl *Downloader) bool

Jump to

Keyboard shortcuts

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