Documentation ¶
Index ¶
- func DownloadFullTsDataWithRetryTimes(httpUrl, key string, isCheckMD5 bool, retryTimes int, timeOut time.Duration) ([]byte, error)
- func DownloadTsDataWithRetryTimes(httpUrl string, start, end, retryTimes int, timeOut time.Duration) ([]byte, error)
- func Get(httpUrl string) ([]byte, error)
- func GetFileSize(httpUrL string) (*fasthttp.Response, error)
- func GetFileSizeWithRetryTimes(httpUrL string, retryTimes int) (uint64, error)
- func GetRedirectUrlWithRetryTimes(httpUrl string, retryTimes int) (string, error)
- func GetTsSize(httpUrL string) (*fasthttp.Response, error)
- func GetTsSizeWithRetryTimes(httpUrL string, retryTimes int) (uint64, error)
- func RetryDoHTTPWithEmptyBody(fn BodyHTTPFunc, retries int, sleep time.Duration) ([]byte, error)
- func RetryDoHTTPWithErr(fn HTTPFunc, retries int, sleep time.Duration) (*fasthttp.Response, error)
- func RetryDoWithEmptyBody(fn BodyFunc, retries int, sleep time.Duration) ([]byte, error)
- func RetryDoWithErr(fn Func, retries int, sleep time.Duration) error
- type BodyFunc
- type BodyHTTPFunc
- type Func
- type HTTPFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTsSizeWithRetryTimes ¶
func RetryDoHTTPWithErr ¶
func RetryDoWithEmptyBody ¶
Types ¶
type BodyHTTPFunc ¶
Click to show internal directories.
Click to hide internal directories.