Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadWithProgress ¶
type DownloadWithProgress struct { TotalRwBytes int64 CurrentBytes int64 Percent int Finished bool URL string SavedPath string Wanted string }
DownloadWithProgress is the progress listener
func (*DownloadWithProgress) CheckMD5 ¶
func (listener *DownloadWithProgress) CheckMD5(target *os.File) error
func (*DownloadWithProgress) Download ¶
func (listener *DownloadWithProgress) Download() error
Download download
func (*DownloadWithProgress) GetWanted ¶
func (listener *DownloadWithProgress) GetWanted() string
func (*DownloadWithProgress) ProgressChanged ¶
func (listener *DownloadWithProgress) ProgressChanged(event *oss.ProgressEvent)
ProgressChanged handles progress event
Click to show internal directories.
Click to hide internal directories.