Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExponentialBackoff ¶
Types ¶
type ClientProfile ¶
type ClientProfile struct { HttpProfile *HttpProfile // Valid choices: HmacSHA1, HmacSHA256, TC3-HMAC-SHA256. // Default value is TC3-HMAC-SHA256. SignMethod string UnsignedPayload bool // Valid choices: zh-CN, en-US. // Default value is zh-CN. Language string Debug bool // define Whether to enable Regional auto switch DisableRegionBreaker bool // Deprecated. Use BackupEndpoint instead. BackupEndPoint string BackupEndpoint string // define how to retry request NetworkFailureMaxRetries int NetworkFailureRetryDuration DurationFunc RateLimitExceededMaxRetries int RateLimitExceededRetryDuration DurationFunc // Configure this client to retry or not when a connectivity problem is encountered. // This differs from NetworkFailureMaxRetries that it will retry regardless of any request. // NetworkFailureMaxRetries only retry request with field "ClientToken". UnsafeRetryOnConnectionFailure bool }
func NewClientProfile ¶
func NewClientProfile() *ClientProfile
type DurationFunc ¶
func ConstantDurationFunc ¶
func ConstantDurationFunc(duration time.Duration) DurationFunc
type HttpProfile ¶
type HttpProfile struct { ReqMethod string ReqTimeout int Scheme string RootDomain string Endpoint string ApigwEndpoint string // Deprecated, use Scheme instead Protocol string Proxy string }
func NewHttpProfile ¶
func NewHttpProfile() *HttpProfile
Click to show internal directories.
Click to hide internal directories.