downloadutil

package
v0.0.0-...-e0ba405 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: LGPL-3.0 Imports: 10 Imported by: 0

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

type OnlineMD5

type OnlineMD5 struct {
	URL string
	// contains filtered or unexported fields
}

OnlineMD5 get md5 online

func (*OnlineMD5) GetWanted

func (h *OnlineMD5) GetWanted() string

Jump to

Keyboard shortcuts

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