Documentation
¶
Index ¶
Constants ¶
View Source
const UserAgent = "" /* 131-byte string literal not displayed */
View Source
const UserAgentNT = "" /* 129-byte string literal not displayed */
Variables ¶
View Source
var ( NoRedirectClient *resty.Client RestyClient *resty.Client HttpClient *http.Client )
View Source
var DefaultTimeout = time.Second * 30
View Source
var UploadStateCache = cache.NewMemCache(cache.WithShards[any](32))
storage upload progress, for upload recovery
Functions ¶
func GetUploadProgress ¶
An upload progress can only be made by one process alone, so here you need to get it and then delete it.
func InitClient ¶
func InitClient()
func NewRestyClient ¶
Types ¶
type ReqCallback ¶
Click to show internal directories.
Click to hide internal directories.