Documentation ¶
Index ¶
- Variables
- func Prettify(i interface{}) string
- type AccessTokenCredential
- type AccessTokenResponse
- type BaseClient
- func (client *BaseClient) AppendUserAgent(useragent string)
- func (client *BaseClient) Default(realStr, defaultStr string) string
- func (client *BaseClient) DefaultNumber(realNum, defaultNum int) int
- func (client *BaseClient) GetAccessKeyId() (string, error)
- func (client *BaseClient) GetAccessKeySecret() (string, error)
- func (client *BaseClient) GetAccessToken() (string, error)
- func (client *BaseClient) GetExpireTime() string
- func (client *BaseClient) GetHost(host, defaultValue string) string
- func (client *BaseClient) GetPathname(nickName string, path string) string
- func (client *BaseClient) GetProtocol(protocol, defaultValue string) string
- func (client *BaseClient) GetRFC2616Date() string
- func (client *BaseClient) GetRefreshToken() string
- func (client *BaseClient) GetSignature(request *tea.Request) string
- func (client *BaseClient) GetUserAgent() string
- func (client *BaseClient) InitClient(config map[string]interface{}) error
- func (client *BaseClient) IsStatusCode(response *tea.Response, code int) bool
- func (client *BaseClient) NotEmpty(value string) bool
- func (client *BaseClient) ReadAsJSON(response *tea.Response) (map[string]interface{}, error)
- func (client *BaseClient) SetAccessToken(token string)
- func (client *BaseClient) SetExpireTime(expireTime string) error
- func (client *BaseClient) SetRefreshToken(token string)
- func (client *BaseClient) SetUserAgent(useragent string)
- func (client *BaseClient) ToJSONString(request interface{}) io.Reader
- func (client *BaseClient) ToQuery(request interface{}) map[string]string
- type Sorter
Constants ¶
This section is empty.
Variables ¶
View Source
var RefreshCallbackFn = func(refreshToken string, accessToken string, expireTime string) {
}
View Source
var RefreshFailCallbackFn = func(err error) {
}
Functions ¶
Types ¶
type AccessTokenCredential ¶
type AccessTokenResponse ¶
type BaseClient ¶
type BaseClient struct { RegionId string `json:"regionId" xml:"regionId"` Protocol string `json:"protocol" xml:"protocol"` Endpoint string `json:"endpoint" xml:"endpoint"` DomainId string `json:"domainId" xml:"domainId"` ClientId string `json:"clientId" xml:"clientId"` UserAgent string `json:"useragent" xml:"useragent"` ClientSecret string `json:"clientSecret" xml:"clientSecret"` Nickname string `json:"nickname" xml:"nickname"` // contains filtered or unexported fields }
func (*BaseClient) AppendUserAgent ¶
func (client *BaseClient) AppendUserAgent(useragent string)
func (*BaseClient) Default ¶
func (client *BaseClient) Default(realStr, defaultStr string) string
func (*BaseClient) DefaultNumber ¶
func (client *BaseClient) DefaultNumber(realNum, defaultNum int) int
func (*BaseClient) GetAccessKeyId ¶
func (client *BaseClient) GetAccessKeyId() (string, error)
func (*BaseClient) GetAccessKeySecret ¶
func (client *BaseClient) GetAccessKeySecret() (string, error)
func (*BaseClient) GetAccessToken ¶
func (client *BaseClient) GetAccessToken() (string, error)
func (*BaseClient) GetExpireTime ¶
func (client *BaseClient) GetExpireTime() string
func (*BaseClient) GetHost ¶
func (client *BaseClient) GetHost(host, defaultValue string) string
func (*BaseClient) GetPathname ¶
func (client *BaseClient) GetPathname(nickName string, path string) string
func (*BaseClient) GetProtocol ¶
func (client *BaseClient) GetProtocol(protocol, defaultValue string) string
func (*BaseClient) GetRFC2616Date ¶
func (client *BaseClient) GetRFC2616Date() string
func (*BaseClient) GetRefreshToken ¶
func (client *BaseClient) GetRefreshToken() string
func (*BaseClient) GetSignature ¶
func (client *BaseClient) GetSignature(request *tea.Request) string
func (*BaseClient) GetUserAgent ¶
func (client *BaseClient) GetUserAgent() string
func (*BaseClient) InitClient ¶
func (client *BaseClient) InitClient(config map[string]interface{}) error
func (*BaseClient) IsStatusCode ¶
func (client *BaseClient) IsStatusCode(response *tea.Response, code int) bool
func (*BaseClient) NotEmpty ¶
func (client *BaseClient) NotEmpty(value string) bool
func (*BaseClient) ReadAsJSON ¶
func (client *BaseClient) ReadAsJSON(response *tea.Response) (map[string]interface{}, error)
func (*BaseClient) SetAccessToken ¶
func (client *BaseClient) SetAccessToken(token string)
func (*BaseClient) SetExpireTime ¶
func (client *BaseClient) SetExpireTime(expireTime string) error
func (*BaseClient) SetRefreshToken ¶
func (client *BaseClient) SetRefreshToken(token string)
func (*BaseClient) SetUserAgent ¶
func (client *BaseClient) SetUserAgent(useragent string)
func (*BaseClient) ToJSONString ¶
func (client *BaseClient) ToJSONString(request interface{}) io.Reader
func (*BaseClient) ToQuery ¶
func (client *BaseClient) ToQuery(request interface{}) map[string]string
type Sorter ¶
Sorter defines the key-value structure for storing the sorted data in signHeader.
Click to show internal directories.
Click to hide internal directories.