Versions in this module Expand all Collapse all v1 v1.0.2 Apr 26, 2020 v1.0.1 Jan 22, 2020 Changes in this version + const SUBRESOURCES_S3 + const TIME_FORMAT_S3 + const V2 + var DEFAULT_INITIAL_INTERVAL int64 = 50 + var DEFAULT_MAX_ELAPSED_TIME int64 = 0x7fffffffffffffff + var DEFAULT_MAX_INTERVAL int64 = 30000 + var DEFAULT_MULTIPLIER float64 = 1.5 + var STOP int64 = -1 + func Decrypto(result []byte, refer string) string + func Encrypto(plainText []byte, refer string) []byte + func HashFileMD5(filePath string) (string, error) + func HashMD5(content []byte) string + func ParseJson(body []byte, obj interface{}) error + func SetCaCertificate(isCrt bool, crtPath string) error + func SetReconnectNum(num uint) + func SetTimeOut(connectTime, responseTime uint) + type ExponentialBackOff struct + CurrentElapsedTime int64 + CurrentInterval int64 + InitialInterval int64 + MaxElapsedTime int64 + MaxInterval int64 + Multiplier float64 + func NewExponentialBackOff(initialInterval int64, multiplier float64, maxInterval, maxElapsedTime int64) *ExponentialBackOff + func (e *ExponentialBackOff) BackOff(backOff int64) int64 + func (e *ExponentialBackOff) GetNextBackOff() int64 + func (e *ExponentialBackOff) ResetCurrentInterval() + type Util struct + Response *http.Response + func NewUtil(ak, sk, reg, auth, raw_ak, raw_sk, endpoint string, pathStyle bool) *Util + func (util *Util) BackupRequestBody(body []byte, sourceFile string) + func (util *Util) Close() + func (util *Util) DoExec() (*http.Response, *models.Result) + func (util *Util) InitConect(mothed, projectId string, resourceMap [][]string, ioread io.Reader) error + func (util *Util) SetHeader(key string, value string) + func (util *Util) SetPath(key, value string)