mirror of
https://github.com/restic/restic.git
synced 2026-11-23 05:42:39 +00:00
Update dependencies
This commit is contained in:
1 parent
f3b49987f8
commit
fda563d606
926 files changed
+189725
-98665
No files matched your search
+12
@@ -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