本文整理匯總了Golang中github.com/bbc/mozart-api-common/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/request.Request.ParamsFilled方法的典型用法代碼示例。如果您正苦於以下問題:Golang Request.ParamsFilled方法的具體用法?Golang Request.ParamsFilled怎麽用?Golang Request.ParamsFilled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/bbc/mozart-api-common/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/request.Request
的用法示例。
在下文中一共展示了Request.ParamsFilled方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Build
// Build builds the REST component of a service request.
func Build(r *request.Request) {
if r.ParamsFilled() {
v := reflect.ValueOf(r.Params).Elem()
buildLocationElements(r, v)
buildBody(r, v)
}
}
示例2: populateLocationConstraint
func populateLocationConstraint(r *request.Request) {
if r.ParamsFilled() && aws.StringValue(r.Service.Config.Region) != "us-east-1" {
in := r.Params.(*CreateBucketInput)
if in.CreateBucketConfiguration == nil {
r.Params = awsutil.CopyOf(r.Params)
in = r.Params.(*CreateBucketInput)
in.CreateBucketConfiguration = &CreateBucketConfiguration{
LocationConstraint: r.Service.Config.Region,
}
}
}
}