當前位置: 首頁>>代碼示例>>Golang>>正文


Golang log.Debug函數代碼示例

本文整理匯總了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
}
開發者ID:smartmz,項目名稱:aliyun-sdk-for-go,代碼行數:8,代碼來源:ecs.go

示例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
}
開發者ID:jiangxukai,項目名稱:aliyun-sdk-for-go,代碼行數:8,代碼來源:client.go

示例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
}
開發者ID:feiyang21687,項目名稱:aliyun-sdk-for-go,代碼行數:10,代碼來源:ecs.go

示例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
}
開發者ID:jiangshengwu,項目名稱:dockerf,代碼行數:12,代碼來源:other.go

示例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
}
開發者ID:jiangshengwu,項目名稱:dockerf,代碼行數:12,代碼來源:image.go

示例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
}
開發者ID:jiangshengwu,項目名稱:dockerf,代碼行數:12,代碼來源:image.go

示例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
}
開發者ID:jiangshengwu,項目名稱:dockerf,代碼行數:12,代碼來源:group.go

示例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
}
開發者ID:jiangshengwu,項目名稱:dockerf,代碼行數:12,代碼來源:disk.go

示例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
}
開發者ID:jiangshengwu,項目名稱:dockerf,代碼行數:12,代碼來源:snapshot.go

示例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
}
開發者ID:jiangshengwu,項目名稱:dockerf,代碼行數:12,代碼來源:network.go

示例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
}
開發者ID:jiangshengwu,項目名稱:dockerf,代碼行數:12,代碼來源:network.go


注:本文中的github.com/jiangshengwu/aliyun-sdk-for-go/log.Debug函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。