Skip to content

Commit 62ab518

Browse files
committed
update go usage
1 parent 971b75e commit 62ab518

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: docs/golang/Usage-CN.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ type Config struct {
9292
Network *string // 需访问服务器的网络类型。例:inner,vpc
9393
Suffix *string // endpoint 后缀
9494
UserAgent *string // UserAgent
95-
ReadTimeout *int // 读超时
96-
ConnectTimeout *int // 连接超时
95+
ReadTimeout *int // 读超时,单位:毫秒
96+
ConnectTimeout *int // 连接超时,单位:毫秒
9797
LocalAddr *string // 本地网卡 ip
9898
HttpProxy *string // http 的代理
9999
HttpsProxy *string // https 的代理
@@ -111,8 +111,8 @@ type RuntimeOptions struct {
111111
MaxAttempts *int // 最大重试次数, 默认为 3
112112
BackoffPolicy *string // 重试休眠策略,默认为 no
113113
BackoffPeriod *int // 重试休眠时间, 默认为 1
114-
ReadTimeout *int // 读超时
115-
ConnectTimeout *int // 连接超时
114+
ReadTimeout *int // 读超时,单位:毫秒
115+
ConnectTimeout *int // 连接超时,单位:毫秒
116116
LocalAddr *string // 本地网卡 ip
117117
HttpProxy *string // http 的代理
118118
HttpsProxy *string // https 的代理

Diff for: docs/golang/Usage-EN.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ type Config struct {
9191
Protocol *string // http or https
9292
RegionId *string // region, such as cn-hangzhou
9393
UserAgent *string // UserAgent
94-
ReadTimeout *int // read timeout
95-
ConnectTimeout *int // connect tiemout
94+
ReadTimeout *int // read timeout,unit:millisecond
95+
ConnectTimeout *int // connect tiemout,unit:millisecond
9696
LocalAddr *string // the local network adapter ip
9797
HttpProxy *string // http proxy
9898
HttpsProxy *string // https proxy
@@ -110,8 +110,8 @@ type RuntimeOptions struct {
110110
MaxAttempts *int // maximum number of retries, defaut: 3
111111
BackoffPolicy *string // retry the sleep strategy, default: no
112112
BackoffPeriod *int // retry the sleep time,default: 1
113-
ReadTimeout *int // read timeout
114-
ConnectTimeout *int // connect timeout
113+
ReadTimeout *int // read timeout,unit:millisecond
114+
ConnectTimeout *int // connect timeout,unit:millisecond
115115
LocalAddr *string // the local network adapter ip
116116
HttpProxy *string // http proxy
117117
HttpsProxy *string // https proxy

0 commit comments

Comments
 (0)