Documentation
¶
Index ¶
Constants ¶
View Source
const DEF_ENDPOINT = "https://uni.apistd.com"
View Source
const DEF_SIGNING_ALGORITHM = "hmac-sha256"
View Source
const REQUEST_ID_HEADER_KEY = "x-uni-request-id"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UniClient ¶
type UniClient struct { AccessKeyId string AccessKeySecret string Endpoint string SigningAlgorithm string }
func (*UniClient) GenerateRandomString ¶
func (*UniClient) Request ¶
func (c *UniClient) Request(action string, data map[string]interface{}) (response *UniResponse, err error)
func (*UniClient) SetEndpoint ¶
type UniResponse ¶
type UniResponse struct { Raw *http.Response Status int Code string Message string Data map[string]interface{} RequestId string }
func NewResponse ¶
func NewResponse(res *http.Response) (*UniResponse, error)
Click to show internal directories.
Click to hide internal directories.