本文整理匯總了Golang中github.com/jiangshengwu/aliyun-sdk-for-go/log.Debug函數的典型用法代碼示例。如果您正苦於以下問題:Golang Debug函數的具體用法?Golang Debug怎麽用?Golang Debug使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Debug函數的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: RequestAPI
func RequestAPI(params map[string]string) (string, error) {
query := util.GetQueryFromMap(params)
req := &util.AliyunRequest{}
req.Url = ECSHost + query
log.Debug(req.Url)
result, err := req.DoGetRequest()
return result, err
}
示例2: RequestAPI
func (c *CommonParam) RequestAPI(params map[string]interface{}) (string, error) {
query := GetQueryFromMap(params)
req := &AliyunRequest{}
req.Url = c.Host + query
log.Debug(req.Url)
result, err := req.DoGetRequest()
return result, err
}
示例3: Request
func (c *CommonParam) Request(action string, params map[string]string, response interface{}) error {
p := c.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return err
}
log.Debug(result)
json.Unmarshal([]byte(result), response)
return nil
}
示例4: DescribeInstanceTypes
func (op *OtherOperator) DescribeInstanceTypes(params map[string]string) (DescribeInstanceTypesResponse, error) {
var resp DescribeInstanceTypesResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return DescribeInstanceTypesResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
示例5: ModifyImageSharePermission
func (op *ImageOperator) ModifyImageSharePermission(params map[string]string) (ModifyImageSharePermissionResponse, error) {
var resp ModifyImageSharePermissionResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return ModifyImageSharePermissionResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
示例6: CancelCopyImage
func (op *ImageOperator) CancelCopyImage(params map[string]string) (CancelCopyImageResponse, error) {
var resp CancelCopyImageResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return CancelCopyImageResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
示例7: RevokeSecurityGroupEgress
func (op *SecurityGroupOperator) RevokeSecurityGroupEgress(params map[string]string) (RevokeSecurityGroupEgressResponse, error) {
var resp RevokeSecurityGroupEgressResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return RevokeSecurityGroupEgressResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
示例8: ReplaceSystemDisk
func (op *DiskOperator) ReplaceSystemDisk(params map[string]string) (ReplaceSystemDiskResponse, error) {
var resp ReplaceSystemDiskResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return ReplaceSystemDiskResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
示例9: ModifyAutoSnapshotPolicy
func (op *SnapshotOperator) ModifyAutoSnapshotPolicy(params map[string]string) (ModifyAutoSnapshotPolicyResponse, error) {
var resp ModifyAutoSnapshotPolicyResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return ModifyAutoSnapshotPolicyResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
示例10: AllocatePublicIpAddress
func (op *NetworkOperator) AllocatePublicIpAddress(params map[string]string) (AllocatePublicIpAddressResponse, error) {
var resp AllocatePublicIpAddressResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return AllocatePublicIpAddressResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
示例11: ModifyEipAddressAttribute
func (op *NetworkOperator) ModifyEipAddressAttribute(params map[string]string) (ModifyEipAddressAttributeResponse, error) {
var resp ModifyEipAddressAttributeResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return ModifyEipAddressAttributeResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}