Versions in this module Expand all Collapse all v0 v0.4.17 Apr 17, 2022 v0.4.16 Apr 14, 2022 Changes in this version + var DebugMode bool + var MuteMode bool + func AddHeaders(req *http.Request) + func Download(link string, backend BaseBackend) + func DownloadFile(config DownConfig) error + func InitCmd(cmd *cobra.Command) + func Upload(files []string, backend BaseBackend) + type Backend struct + Bar *pb.ProgressBar + func (b *Backend) StartProgress(stream io.Reader, size int64) io.Reader + func (b Backend) DoDownload(link string, config DownConfig) error + func (b Backend) DoUpload(string, int64, io.Reader) error + func (b Backend) EndProgress() + func (b Backend) FinishUpload([]string) (string, error) + func (b Backend) InitUpload([]string, []int64) error + func (b Backend) PostUpload(string, int64) (string, error) + func (b Backend) PreUpload(string, int64) error + type BaseBackend interface + LinkMatcher func(string) bool + SetArgs func(*cobra.Command) + type DownConfig struct + Ticket string + var DownloadConfig DownConfig + type Downloader interface + DoDownload func(string, DownConfig) error + type Uploader interface + DoUpload func(string, int64, io.Reader) error + EndProgress func() + FinishUpload func([]string) (string, error) + InitUpload func([]string, []int64) error + PostUpload func(string, int64) (string, error) + PreUpload func(string, int64) error + StartProgress func(io.Reader, int64) io.Reader