Documentation
¶
Index ¶
- func CombinePaths(path1, path2, sep string) string
- func ConvertSizeString(size int64) string
- func FilterStrings(arr []string, filter func(string) bool) []string
- func GetFileName(path string) string
- func GetParentPath(path string) string
- func PathExists(path string) bool
- func SelectStrings(arr []string, selector func(string) string) []string
- func ShortString(str string, length int) string
- func ToMd5(str string) string
- type Config
- type SixHttpClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombinePaths ¶
func ConvertSizeString ¶
func GetFileName ¶
func GetParentPath ¶
func PathExists ¶
func ShortString ¶
Types ¶
type Config ¶
type Config struct {
DownloadPath string `json:"downloadPath"`
DownloadThread int32 `json:"downloadThread"`
DownloadBlockSize int64 `json:"downloadBlockSize"`
PeakTaskCount int32 `json:"peakTask"`
QingzhenToken string `json:"token"`
}
var (
DefaultConf *Config
)
func LoadConfig ¶
type SixHttpClient ¶
type SixHttpClient struct {
QingzhenToken string
// contains filtered or unexported fields
}
6盘
func NewSixHttpClient ¶
func NewSixHttpClient(token string) *SixHttpClient
func (*SixHttpClient) PostJson ¶
func (cli *SixHttpClient) PostJson(url, body string) string
Click to show internal directories.
Click to hide internal directories.