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

Side by Side Diff: impl/prod/context.go

Issue 1355783002: Refactor keys and queries in datastore service and implementation. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: appease errcheck Created 5 years, 3 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
« no previous file with comments | « impl/memory/testing_utils_test.go ('k') | impl/prod/datastore_key.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package prod 5 package prod
6 6
7 import ( 7 import (
8 "net/http" 8 "net/http"
9 9
10 "golang.org/x/net/context" 10 "golang.org/x/net/context"
(...skipping 10 matching lines...) Expand all
21 // - github.com/luci/gae/service/info 21 // - github.com/luci/gae/service/info
22 // - github.com/luci/gae/service/urlfetch 22 // - github.com/luci/gae/service/urlfetch
23 // 23 //
24 // These can be retrieved with the <service>.Get functions. 24 // These can be retrieved with the <service>.Get functions.
25 // 25 //
26 // The implementations are all backed by the real appengine SDK functionality, 26 // The implementations are all backed by the real appengine SDK functionality,
27 func Use(c context.Context) context.Context { 27 func Use(c context.Context) context.Context {
28 return useURLFetch(useRDS(useMC(useTQ(useGI(c))))) 28 return useURLFetch(useRDS(useMC(useTQ(useGI(c)))))
29 } 29 }
30 30
31 // UseRequest adds production implementations for all the gae services 31 // UseRequest adds production implementations for all the gae services to the
32 // to the context. 32 // context.
33 // 33 //
34 // The services added are: 34 // The services added are:
35 // - github.com/luci/gae/service/datastore 35 // - github.com/luci/gae/service/datastore
36 // - github.com/luci/gae/service/taskqueue 36 // - github.com/luci/gae/service/taskqueue
37 // - github.com/luci/gae/service/memcache 37 // - github.com/luci/gae/service/memcache
38 // - github.com/luci/gae/service/info 38 // - github.com/luci/gae/service/info
39 // - github.com/luci/gae/service/urlfetch 39 // - github.com/luci/gae/service/urlfetch
40 // 40 //
41 // These can be retrieved with the <service>.Get functions. 41 // These can be retrieved with the <service>.Get functions.
42 // 42 //
43 // The implementations are all backed by the real appengine SDK functionality, 43 // The implementations are all backed by the real appengine SDK functionality,
44 func UseRequest(r *http.Request) context.Context { 44 func UseRequest(r *http.Request) context.Context {
45 return useURLFetch(useRDS(useMC(useTQ(useGI(appengine.NewContext(r)))))) 45 return useURLFetch(useRDS(useMC(useTQ(useGI(appengine.NewContext(r))))))
46 } 46 }
OLDNEW
« no previous file with comments | « impl/memory/testing_utils_test.go ('k') | impl/prod/datastore_key.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698