1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-23 03:33:28 +00:00

Switch to using the dep tool and update all the dependencies

This commit is contained in:
Nick Craig-Wood
2017-05-11 15:39:54 +01:00
parent 5135ff73cb
commit 98c2d2c41b
5321 changed files with 4483201 additions and 5922 deletions

View File

@@ -0,0 +1,60 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package mobileanalytics_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/mobileanalytics"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleMobileAnalytics_PutEvents() {
sess := session.Must(session.NewSession())
svc := mobileanalytics.New(sess)
params := &mobileanalytics.PutEventsInput{
ClientContext: aws.String("String"), // Required
Events: []*mobileanalytics.Event{ // Required
{ // Required
EventType: aws.String("String50Chars"), // Required
Timestamp: aws.String("ISO8601Timestamp"), // Required
Attributes: map[string]*string{
"Key": aws.String("String0to1000Chars"), // Required
// More values...
},
Metrics: map[string]*float64{
"Key": aws.Float64(1.0), // Required
// More values...
},
Session: &mobileanalytics.Session{
Duration: aws.Int64(1),
Id: aws.String("String50Chars"),
StartTimestamp: aws.String("ISO8601Timestamp"),
StopTimestamp: aws.String("ISO8601Timestamp"),
},
Version: aws.String("String10Chars"),
},
// More values...
},
ClientContextEncoding: aws.String("String"),
}
resp, err := svc.PutEvents(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}