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

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

Issue 1498963003: Move gaelogging from luci/luci-go to luci/gae (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: rebase 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/memory/context.go ('k') | impl/prod/everything_test.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 "github.com/luci/gae/service/info" 10 "github.com/luci/gae/service/info"
(...skipping 28 matching lines...) Expand all
39 39
40 // Use adds production implementations for all the gae services to the 40 // Use adds production implementations for all the gae services to the
41 // context. 41 // context.
42 // 42 //
43 // The services added are: 43 // The services added are:
44 // - github.com/luci/gae/service/datastore 44 // - github.com/luci/gae/service/datastore
45 // - github.com/luci/gae/service/taskqueue 45 // - github.com/luci/gae/service/taskqueue
46 // - github.com/luci/gae/service/memcache 46 // - github.com/luci/gae/service/memcache
47 // - github.com/luci/gae/service/info 47 // - github.com/luci/gae/service/info
48 // - github.com/luci/gae/service/urlfetch 48 // - github.com/luci/gae/service/urlfetch
49 // - github.com/luci/gae/service/user
50 // - github.com/luci-go/common/logging
49 // 51 //
50 // These can be retrieved with the <service>.Get functions. 52 // These can be retrieved with the <service>.Get functions.
51 // 53 //
52 // The implementations are all backed by the real appengine SDK functionality, 54 // The implementations are all backed by the real appengine SDK functionality,
53 func Use(c context.Context, r *http.Request) context.Context { 55 func Use(c context.Context, r *http.Request) context.Context {
54 aeCtx := appengine.NewContext(r) 56 aeCtx := appengine.NewContext(r)
55 c = context.WithValue(c, prodContextKey, aeCtx) 57 c = context.WithValue(c, prodContextKey, aeCtx)
56 c = context.WithValue(c, prodContextNoTxnKey, aeCtx) 58 c = context.WithValue(c, prodContextNoTxnKey, aeCtx)
57 » return useUser(useURLFetch(useRDS(useMC(useTQ(useGI(c)))))) 59 » return useUser(useURLFetch(useRDS(useMC(useTQ(useGI(useLogging(c)))))))
58 } 60 }
OLDNEW
« no previous file with comments | « impl/memory/context.go ('k') | impl/prod/everything_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698