Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Unified Diff: common/gcloud/pubsub/scopes.go

Issue 1838303002: Use native Pub/Sub library primitives. (Closed) Base URL: https://github.com/luci/luci-go@logdog-go1.6
Patch Set: Use "Topic" instead of "NewTopic" ... don't want to create :) Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/gcloud/pubsub/retry.go ('k') | common/gcloud/pubsub/subscriber/source.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/gcloud/pubsub/scopes.go
diff --git a/common/gcloud/pubsub/scopes.go b/common/gcloud/pubsub/scopes.go
new file mode 100644
index 0000000000000000000000000000000000000000..01059def77c2e9be31e71de57b6143b5b3971917
--- /dev/null
+++ b/common/gcloud/pubsub/scopes.go
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package pubsub
+
+import (
+ "google.golang.org/cloud/pubsub"
+)
+
+var (
+ // PublisherScopes is the set of OAuth2 scopes needed for a publisher to
+ // publish messages.
+ PublisherScopes = []string{
+ pubsub.ScopePubSub,
+ }
+
+ // SubscriberScopes is the set of OAuth2 scopes needed for a subscriber to
+ // pull and acknowledge messages.
+ SubscriberScopes = []string{
+ pubsub.ScopePubSub,
+ }
+)
« no previous file with comments | « common/gcloud/pubsub/retry.go ('k') | common/gcloud/pubsub/subscriber/source.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698