Documentation ¶
Index ¶
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func CloseOldEnv()
- func GetWd() string
- func MergeTsFileListToSingleMp4(req MergeTsFileListToSingleMp4_Req) (err error)
- func PKCS7UnPadding(origData []byte) []byte
- func RunDownload_Req_ToCurlStr(req RunDownload_Req) string
- func SetProxyFormat(origin string) (after string, urlObj *url.URL, errMsg string)
- func UrlHasSuffix(urlS string, suff string) bool
- type DbVideoInfo
- type GetProgress_Resp
- type MergeTsFileListToSingleMp4_Req
- type ParseCurl_Resp
- type RunDownload_Req
- type RunDownload_Resp
- type TsInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func CloseOldEnv ¶
func CloseOldEnv()
func MergeTsFileListToSingleMp4 ¶
func MergeTsFileListToSingleMp4(req MergeTsFileListToSingleMp4_Req) (err error)
func PKCS7UnPadding ¶
func RunDownload_Req_ToCurlStr ¶
func RunDownload_Req_ToCurlStr(req RunDownload_Req) string
func SetProxyFormat ¶
func UrlHasSuffix ¶
Types ¶
type DbVideoInfo ¶
type DbVideoInfo struct { VideoId string ContentHash string FileSize int64 // 加快搜索速度 OriginReq RunDownload_Req }
func (*DbVideoInfo) SearchVideoInDir ¶
func (this *DbVideoInfo) SearchVideoInDir(dir string) (latestNameFullPath string, found bool)
type GetProgress_Resp ¶
func GetProgress ¶
func GetProgress() (resp GetProgress_Resp)
type ParseCurl_Resp ¶
type ParseCurl_Resp struct { ErrMsg string DownloadReq RunDownload_Req }
func ParseCurl ¶
func ParseCurl(cmdList []string) (resp ParseCurl_Resp)
func ParseCurlStr ¶
func ParseCurlStr(s string) (resp ParseCurl_Resp)
type RunDownload_Req ¶
type RunDownload_Resp ¶
func RunDownload ¶
func RunDownload(req RunDownload_Req) (resp RunDownload_Resp)
Click to show internal directories.
Click to hide internal directories.