Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 Changes in this version + var DefaultTimeout = time.Second * 30 + var HttpClient *http.Client + var NoRedirectClient *resty.Client + var RestyClient *resty.Client + var UploadStateCache = cache.NewMemCache(cache.WithShards[any](32)) + var UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" + func GetUploadProgress[T any](driver driver.Driver, keys ...string) (state T, ok bool) + func InitClient() + func NewHttpClient() *http.Client + func NewRestyClient() *resty.Client + func SaveUploadProgress(driver driver.Driver, state any, keys ...string) bool + type Json map[string]interface + type ReqCallback func(req *resty.Request) + type TokenResp struct + AccessToken string + RefreshToken string