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

Side by Side Diff: common/gcloud/pubsub/quota.go

Issue 2219023003: Update APIs to use new Google cloud paths. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package pubsub 5 package pubsub
6 6
7 import ( 7 import (
8 "time" 8 "time"
9 9
10 » "google.golang.org/cloud/pubsub" 10 » "cloud.google.com/go/pubsub"
11 ) 11 )
12 12
13 // Cloud PubSub quota is documented here: 13 // Cloud PubSub quota is documented here:
14 // https://cloud.google.com/pubsub/quotas 14 // https://cloud.google.com/pubsub/quotas
15 const ( 15 const (
16 // MaxPublishSize is the maximum size, in bytes, of the published messag e 16 // MaxPublishSize is the maximum size, in bytes, of the published messag e
17 // (10 MB). 17 // (10 MB).
18 // 18 //
19 // See: https://cloud.google.com/pubsub/publisher 19 // See: https://cloud.google.com/pubsub/publisher
20 MaxPublishSize = 10 * 1024 * 1024 20 MaxPublishSize = 10 * 1024 * 1024
21 21
22 // MaxPublishBatchSize is the maximum PubSub batch size. 22 // MaxPublishBatchSize is the maximum PubSub batch size.
23 MaxPublishBatchSize = pubsub.MaxPublishBatchSize 23 MaxPublishBatchSize = pubsub.MaxPublishBatchSize
24 24
25 // MaxProjectMessagesPerSecond is the maximum number of requests per sec ond, 25 // MaxProjectMessagesPerSecond is the maximum number of requests per sec ond,
26 // across the entire project. 26 // across the entire project.
27 MaxProjectMessagesPerSecond = 10000 27 MaxProjectMessagesPerSecond = 10000
28 28
29 // MaxSubscriptionPullSize is the maximum number of subscription records that 29 // MaxSubscriptionPullSize is the maximum number of subscription records that
30 // can be pulled at a time. 30 // can be pulled at a time.
31 MaxSubscriptionPullSize = pubsub.DefaultMaxPrefetch 31 MaxSubscriptionPullSize = pubsub.DefaultMaxPrefetch
32 32
33 // MaxACKDeadline is the maximum acknowledgement deadline that can be ap plied 33 // MaxACKDeadline is the maximum acknowledgement deadline that can be ap plied
34 // to a leased subscription Message. 34 // to a leased subscription Message.
35 MaxACKDeadline = 600 * time.Second 35 MaxACKDeadline = 600 * time.Second
36 ) 36 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698