mirror of
https://github.com/rclone/rclone.git
synced 2025-12-28 06:03:43 +00:00
vendor: update all dependencies to latest versions
This commit is contained in:
12
vendor/cloud.google.com/go/pubsub/example_test.go
generated
vendored
12
vendor/cloud.google.com/go/pubsub/example_test.go
generated
vendored
@@ -49,6 +49,18 @@ func ExampleClient_CreateTopic() {
|
||||
_ = topic // TODO: use the topic.
|
||||
}
|
||||
|
||||
// Use TopicInProject to refer to a topic that is not in the client's project, such
|
||||
// as a public topic.
|
||||
func ExampleClient_TopicInProject() {
|
||||
ctx := context.Background()
|
||||
client, err := pubsub.NewClient(ctx, "project-id")
|
||||
if err != nil {
|
||||
// TODO: Handle error.
|
||||
}
|
||||
topic := client.TopicInProject("topicName", "another-project-id")
|
||||
_ = topic // TODO: use the topic.
|
||||
}
|
||||
|
||||
func ExampleClient_CreateSubscription() {
|
||||
ctx := context.Background()
|
||||
client, err := pubsub.NewClient(ctx, "project-id")
|
||||
|
||||
Reference in New Issue
Block a user