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

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

Issue 1243323002: Refactor a bit. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: fix golint Created 5 years, 5 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 "golang.org/x/net/context" 8 "golang.org/x/net/context"
9 ) 9 )
10 10
11 // Use adds implementations for the following gae interfaces to the 11 // Use adds production implementations for all the gae services to the context.
12 // context:
13 // * gae.RawDatastore
14 // * gae.TaskQueue
15 // * gae.Memcache
16 // * gae.GlobalInfo
17 // 12 //
18 // These can be retrieved with the gae.Get functions. 13 // The services added are:
14 // - github.com/luci/gae/service/rawdatastore
15 // - github.com/luci/gae/service/taskqueue
16 // - github.com/luci/gae/service/memcache
17 // - github.com/luci/gae/service/info
18 //
19 // These can be retrieved with the <service>.Get functions.
19 // 20 //
20 // The implementations are all backed by the real appengine SDK functionality, 21 // The implementations are all backed by the real appengine SDK functionality,
21 func Use(c context.Context) context.Context { 22 func Use(c context.Context) context.Context {
22 return useRDS(useMC(useTQ(useGI(c)))) 23 return useRDS(useMC(useTQ(useGI(c))))
23 } 24 }
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