package
0.1.3
Repository: https://github.com/tickstep/cloudpan189-go.git
Documentation: pkg.go.dev

# Functions

DefaultDURLCheckFunc 默认的 DURLCheckFunc.
DefaultLoadBalancerCompareFunc 检测负载均衡的服务器是否一致.
GetFileName 获取文件名.
GetStatusText 根据状态码获取状态信息.
NewConfig 返回默认配置.
NewDownloader 初始化Downloader.
NewDownloaderWriterByFilename 创建下载器数据输出接口, 类似于os.OpenFile.
NewInstanceState 初始化InstanceState.
NewLoadBalancerResponseList 初始化负载均衡列表.
NewMonitor 初始化Monitor.
NewResetController 初始化*ResetController.
NewWorker 初始化Worker.
NewWorkerStatus 初始化WorkerStatus.
ParseContentRange 解析Content-Range.
RandomNumber 生成指定区间随机数.

# Constants

CacheSize 默认的下载缓存.
DefaultAcceptRanges 默认的 Accept-Ranges.
InstanceStateStorageFormatJSON json 格式.
InstanceStateStorageFormatProto3 protobuf 格式.
StatusCodeCanceled 已取消.
StatusCodeDownloading 下载中.
StatusCodeDownloadUrlExpired 下载链接已过期.
StatusCodeFailed 下载失败.
StatusCodeInit 初始化.
StatusCodeInternalError 内部错误.
StatusCodeNetError 网络错误.
StatusCodePaused 已暂停.
StatusCodePending 等待响应.
StatusCodeReseted 已重设连接.
StatusCodeSuccessed 成功.
StatusCodeTooManyConnections 连接数太多.
StatusCodeWaitToWrite 等待写入数据.

# Variables

ContentRangeRE Content-Range 正则.
ErrNoWokers no workers.
MaxParallelWorkerCount 单个文件下载最大并发线程数量.
1MB.

# Structs

No description provided by the author
Config 下载配置.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ResetController 网络连接控制器.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author