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