Documentation ¶
Index ¶
- Variables
- func TestSign() (s string, authorization string, err error)
- type Client
- func (c *Client) HttpDeleteJson(path string, params string, headers ...map[string]string) (body string, err error)
- func (c *Client) HttpGetJson(path string, params url.Values, headers ...map[string]string) (body string, err error)
- func (c *Client) HttpPUTJson(path string, params string, headers ...map[string]string) (body string, err error)
- func (c *Client) HttpPatchJson(path string, params string, headers ...map[string]string) (body string, err error)
- func (c *Client) HttpPostJson(path string, params string, headers ...map[string]string) (body string, err error)
- func (c *Client) SetAuthorizationHeader(authorizationHeader string)
- func (c *Client) SetSessionTokenHeader(sessionTokenHeader string)
- func (c *Client) SetTimeStampHeader(timeStampHeader string)
- func (c *Client) SetVersion(version string)
Constants ¶
This section is empty.
Variables ¶
View Source
var TcbAPI = "https://tcb-api.tencentcloudapi.com"
Cloudbase Open API 服务地址 https://docs.cloudbase.net/api-reference/openapi/introduction.html
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) HttpDeleteJson ¶
func (c *Client) HttpDeleteJson(path string, params string, headers ...map[string]string) (body string, err error)
DELETE
func (*Client) HttpGetJson ¶
func (c *Client) HttpGetJson(path string, params url.Values, headers ...map[string]string) (body string, err error)
GET
func (*Client) HttpPUTJson ¶
func (c *Client) HttpPUTJson(path string, params string, headers ...map[string]string) (body string, err error)
PUT
func (*Client) HttpPatchJson ¶
func (c *Client) HttpPatchJson(path string, params string, headers ...map[string]string) (body string, err error)
PATCH
func (*Client) HttpPostJson ¶
func (c *Client) HttpPostJson(path string, params string, headers ...map[string]string) (body string, err error)
POST
func (*Client) SetAuthorizationHeader ¶
authorizationHeader
func (*Client) SetSessionTokenHeader ¶
sessionTokenHeader
func (*Client) SetTimeStampHeader ¶
timeStampHeader
Click to show internal directories.
Click to hide internal directories.