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

Unified Diff: go/src/infra/gae/libs/wrapper/context.go

Issue 1151473003: Better attempt at an appengine wrapper. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: better typecheck Created 5 years, 7 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
Index: go/src/infra/gae/libs/wrapper/context.go
diff --git a/go/src/infra/gae/libs/wrapper/context.go b/go/src/infra/gae/libs/wrapper/context.go
new file mode 100644
index 0000000000000000000000000000000000000000..8adec69df84c6887010cf6adb1607d0947216bc4
--- /dev/null
+++ b/go/src/infra/gae/libs/wrapper/context.go
@@ -0,0 +1,18 @@
+// 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 wrapper
+
+type key int
+
+var (
+ globalInfoKey key
M-A Ruel 2015/05/27 00:27:11 I'd prefer for consistency even if unneeded: globa
iannucci 2015/05/27 02:40:57 golint complains (and thus I fail presubmit) :(
+
+ datastoreKey key = 1
+ memcacheKey key = 2
+ taskQueueKey key = 3
+
+ timeNowKey key = 4
+ mathRandKey key = 5
+)

Powered by Google App Engine
This is Rietveld 408576698