Documentation
¶
Index ¶
Constants ¶
This section is empty.
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
View Source
var UserAgent = "Mozilla/5.0 (Macintosh; Apple macOS 15_5) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36 Chrome/138.0.0.0"
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.