Versions in this module Expand all Collapse all v1 v1.0.1 Jan 16, 2025 Changes in this version + var DefaultUserAgent = fmt.Sprintf("lansexiongdi (%s; %s) Golang/%s Core/%s", runtime.GOOS, runtime.GOARCH, ...) + var Version = "1.0.0" + func Timeout(connectTimeout time.Duration) func(cxt context.Context, net, addr string) (c net.Conn, err error) + func TransToString(object interface{}) string + type Client struct + Domain string + EndpointMap map[string]string + EndpointType string + Network string + Scheme string + func NewClientWithAccessKey(secretKey string, scheme string, domain string) (client *Client, err error) + func (client *Client) AppendUserAgent(key, value string) + func (client *Client) BuildRequestWithSigner(request requests.AcsRequest, signer auth.Signer) (err error) + func (client *Client) CloseLogger() + func (client *Client) DoAction(request requests.AcsRequest, response responses.AcsResponse) (err error) + func (client *Client) DoActionWithSigner(request requests.AcsRequest, response responses.AcsResponse, ...) (err error) + func (client *Client) GetConfig() *Config + func (client *Client) GetConnectTimeout() time.Duration + func (client *Client) GetHTTPSInsecure() bool + func (client *Client) GetHttpProxy() string + func (client *Client) GetHttpsProxy() string + func (client *Client) GetLogger() *Logger + func (client *Client) GetLoggerMsg() string + func (client *Client) GetNoProxy() string + func (client *Client) GetReadTimeout() time.Duration + func (client *Client) GetSigner() auth.Signer + func (client *Client) GetTemplate() string + func (client *Client) Init() (err error) + func (client *Client) InitClientConfig() (config *Config) + func (client *Client) InitWithAccessKey(secretKey string) (err error) + func (client *Client) InitWithOptions(config *Config, credential auth.Credential) (err error) + func (client *Client) OpenLogger() + func (client *Client) ProcessCommonRequest(request *requests.CommonRequest) (response *responses.CommonResponse, err error) + func (client *Client) SetConnectTimeout(connectTimeout time.Duration) + func (client *Client) SetEndpointRules(endpointMap map[string]string, endpointType string, netWork string) + func (client *Client) SetHTTPSInsecure(isInsecure bool) + func (client *Client) SetHttpProxy(httpProxy string) + func (client *Client) SetHttpsProxy(httpsProxy string) + func (client *Client) SetLogger(level string, channel string, out io.Writer, template string) + func (client *Client) SetNoProxy(noProxy string) + func (client *Client) SetReadTimeout(readTimeout time.Duration) + func (client *Client) SetSigner(signer auth.Signer) + func (client *Client) SetTemplate(template string) + func (client *Client) SetTransport(transport http.RoundTripper) + func (client *Client) Shutdown() + type Config struct + AutoRetry bool + Debug bool + EnableAsync bool + GoRoutinePoolSize int + HttpTransport *http.Transport + MaxRetryTime int + MaxTaskQueueSize int + Scheme string + Timeout time.Duration + Transport http.RoundTripper + UserAgent string + func NewConfig() (config *Config) + func (c *Config) WithAutoRetry(isAutoRetry bool) *Config + func (c *Config) WithDebug(isDebug bool) *Config + func (c *Config) WithEnableAsync(isEnableAsync bool) *Config + func (c *Config) WithGoRoutinePoolSize(goRoutinePoolSize int) *Config + func (c *Config) WithHttpTransport(httpTransport *http.Transport) *Config + func (c *Config) WithMaxRetryTime(maxRetryTime int) *Config + func (c *Config) WithMaxTaskQueueSize(maxTaskQueueSize int) *Config + func (c *Config) WithScheme(scheme string) *Config + func (c *Config) WithTimeout(timeout time.Duration) *Config + func (c *Config) WithUserAgent(userAgent string) *Config + type Logger struct