Browse Source

fix merge error

hangzws 7 years ago
parent
commit
6a1120d64e
1 changed files with 21 additions and 20 deletions
  1. 21 20
      oss/conf.go

+ 21 - 20
oss/conf.go

@@ -34,28 +34,29 @@ type HTTPMaxConns struct {
 
 // Config defines oss configuration
 type Config struct {
-	Endpoint          string      // OSS endpoint
-	AccessKeyID       string      // AccessId
-	AccessKeySecret   string      // AccessKey
-	RetryTimes        uint        // Retry count by default it's 5.
-	UserAgent         string      // SDK name/version/system information
-	IsDebug           bool        // Enable debug mode. Default is false.
-	Timeout           uint        // Timeout in seconds. By default it's 60.
-	SecurityToken     string      // STS Token
-	IsCname           bool        // If cname is in the endpoint.
-	HTTPTimeout       HTTPTimeout // HTTP timeout
-	IsUseProxy        bool        // Flag of using proxy.
-	ProxyHost         string      // Flag of using proxy host.
-	IsAuthProxy       bool        // Flag of needing authentication.
-	ProxyUser         string      // Proxy user
-	ProxyPassword     string      // Proxy password
-	IsEnableMD5       bool        // Flag of enabling MD5 for upload.
-	MD5Threshold      int64       // Memory footprint threshold for each MD5 computation (16MB is the default), in byte. When the data is more than that, temp file is used.
-	IsEnableCRC       bool        // Flag of enabling CRC for upload.
+	Endpoint          string       // OSS endpoint
+	AccessKeyID       string       // AccessId
+	AccessKeySecret   string       // AccessKey
+	RetryTimes        uint         // Retry count by default it's 5.
+	UserAgent         string       // SDK name/version/system information
+	IsDebug           bool         // Enable debug mode. Default is false.
+	Timeout           uint         // Timeout in seconds. By default it's 60.
+	SecurityToken     string       // STS Token
+	IsCname           bool         // If cname is in the endpoint.
+	HTTPTimeout       HTTPTimeout  // HTTP timeout
+	HTTPMaxConns      HTTPMaxConns // Http max connections
+	IsUseProxy        bool         // Flag of using proxy.
+	ProxyHost         string       // Flag of using proxy host.
+	IsAuthProxy       bool         // Flag of needing authentication.
+	ProxyUser         string       // Proxy user
+	ProxyPassword     string       // Proxy password
+	IsEnableMD5       bool         // Flag of enabling MD5 for upload.
+	MD5Threshold      int64        // Memory footprint threshold for each MD5 computation (16MB is the default), in byte. When the data is more than that, temp file is used.
+	IsEnableCRC       bool         // Flag of enabling CRC for upload.
 	AuthVersion       AuthVersionType
 	AdditionalHeaders []string
-	LogLevel        int          // log level
-        Logger          *log.Logger  // For write log
+	LogLevel          int         // log level
+	Logger            *log.Logger // For write log
 }
 
 // WriteLog