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

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

Issue 1500433002: Add User service. (Closed) Base URL: https://github.com/luci/gae.git@inner_ctx
Patch Set: method Created 5 years 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/dummy/dummy_test.go ('k') | impl/prod/user.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 22 matching lines...) Expand all
33 // - github.com/luci/gae/service/memcache 33 // - github.com/luci/gae/service/memcache
34 // - github.com/luci/gae/service/info 34 // - github.com/luci/gae/service/info
35 // - github.com/luci/gae/service/urlfetch 35 // - github.com/luci/gae/service/urlfetch
36 // 36 //
37 // These can be retrieved with the <service>.Get functions. 37 // These can be retrieved with the <service>.Get functions.
38 // 38 //
39 // The implementations are all backed by the real appengine SDK functionality, 39 // The implementations are all backed by the real appengine SDK functionality,
40 func Use(c context.Context, r *http.Request) context.Context { 40 func Use(c context.Context, r *http.Request) context.Context {
41 aeCtx := appengine.NewContext(r) 41 aeCtx := appengine.NewContext(r)
42 c = context.WithValue(c, prodContextKey, aeCtx) 42 c = context.WithValue(c, prodContextKey, aeCtx)
43 » return useURLFetch(useRDS(useMC(useTQ(useGI(c))))) 43 » return useUser(useURLFetch(useRDS(useMC(useTQ(useGI(c))))))
44 } 44 }
OLDNEW
« no previous file with comments | « impl/dummy/dummy_test.go ('k') | impl/prod/user.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698