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)
- func WriteResponse(w http.ResponseWriter, statusCode int, body interface{})
- func WriteResponseMsg(from string, w http.ResponseWriter, statusCode int, statusStr string)
- 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 Patch(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(method string, url string, token string, jsData *[]byte) *HtReq
- func TryRequest(method string, url string, token string, jsData *[]byte) *HtReq
- type HtReqMap
- type ReqParams
- type WriteCounter
- type XFileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParalellDownloadFile ¶
ParalellDownloadFile #
func WriteResponse ¶ added in v1.9.7
func WriteResponse(w http.ResponseWriter, statusCode int, body interface{})
WriteResponse #
func WriteResponseMsg ¶ added in v1.9.7
func WriteResponseMsg(from string, w http.ResponseWriter, statusCode int, statusStr string)
WriteResponseMsg #
Types ¶
type DownloadFileInfo ¶
type DownloadFileInfo struct { FileName string Web XFileInfo Loc XFileInfo Changed bool // contains filtered or unexported fields }
DownloadFileInfo #
func (*DownloadFileInfo) Download ¶
func (f *DownloadFileInfo) Download(toFile string) error
Download #
func (*DownloadFileInfo) ParalellDownload ¶
func (f *DownloadFileInfo) ParalellDownload(toFile string) error
ParalellDownload #
func (*DownloadFileInfo) SetFileTime ¶
func (f *DownloadFileInfo) SetFileTime(toFile string) error
SetFileTime #
type DownloadFilesInfo ¶
type DownloadFilesInfo struct { List []DownloadFileInfo // contains filtered or unexported fields }
DownloadFilesInfo #
func GetDownloadFilesInfo ¶
func GetDownloadFilesInfo(url string) (*DownloadFilesInfo, error)
GetDownloadFilesInfo #
func (*DownloadFilesInfo) GetFileInfo ¶
func (fl *DownloadFilesInfo) GetFileInfo(FileName string) (*DownloadFileInfo, error)
GetFileInfo #
type HtReqMap ¶
type HtReqMap struct {
// contains filtered or unexported fields
}
HtReqMap #
type ReqParams ¶ added in v1.9.15
type ReqParams struct {
// contains filtered or unexported fields
}
ReqParams #
type WriteCounter ¶
type WriteCounter struct {
Total uint64
}
WriteCounter #
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()
PrintProgress #prints the progress of a file write
Click to show internal directories.
Click to hide internal directories.