Documentation
¶
Index ¶
- func DownloadFile(url string, toFile string) error
- func JSON2Str(data interface{}) string
- func ParalellDownloadFile(url string, toFile string) error
- func URLfileSize(url string) (int, error)
- type DownloadFileInfo
- type DownloadFilesInfo
- type HtReq
- func Delete(url string, token string, jsData *[]byte) *HtReq
- func Get(url string, token string, jsData *[]byte) *HtReq
- func Post(url string, token string, jsData *[]byte) *HtReq
- func Put(url string, token string, jsData *[]byte) *HtReq
- func Request(url string, method string, token string, jsData *[]byte) *HtReq
- type WriteCounter
- type XFileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶ added in v1.7.7
DownloadFile #
func ParalellDownloadFile ¶ added in v1.7.9
ParalellDownloadFile #
Types ¶
type DownloadFileInfo ¶ added in v1.7.7
type DownloadFileInfo struct { FileName string Web XFileInfo Loc XFileInfo Changed bool // contains filtered or unexported fields }
DownloadFileInfo #
func (*DownloadFileInfo) Download ¶ added in v1.7.7
func (f *DownloadFileInfo) Download(toFile string) error
Download #
func (*DownloadFileInfo) ParalellDownload ¶ added in v1.7.9
func (f *DownloadFileInfo) ParalellDownload(toFile string) error
ParalellDownload #
func (*DownloadFileInfo) SetFileTime ¶ added in v1.7.7
func (f *DownloadFileInfo) SetFileTime(toFile string) error
SetFileTime #
type DownloadFilesInfo ¶ added in v1.7.7
type DownloadFilesInfo struct { List []DownloadFileInfo // contains filtered or unexported fields }
DownloadFilesInfo #
func GetDownloadFilesInfo ¶ added in v1.7.7
func GetDownloadFilesInfo(url string) (*DownloadFilesInfo, error)
GetDownloadFilesInfo #
func (*DownloadFilesInfo) GetFileInfo ¶ added in v1.7.7
func (fl *DownloadFilesInfo) GetFileInfo(FileName string) (*DownloadFileInfo, error)
GetFileInfo #
type WriteCounter ¶ added in v1.7.7
type WriteCounter struct {
Total uint64
}
WriteCounter #
func (WriteCounter) PrintProgress ¶ added in v1.7.7
func (wc WriteCounter) PrintProgress()
PrintProgress #prints the progress of a file write
Click to show internal directories.
Click to hide internal directories.