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

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

Issue 1957953002: Add cloud datastore implementation. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Adjust minimum coverage. Created 4 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 | « no previous file | impl/cloud/datastore.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 package cloud
6
7 import (
8 "google.golang.org/cloud/datastore"
9
10 "golang.org/x/net/context"
11 )
12
13 // Use installs the cloud services implementation into the supplied Context.
14 //
15 // This includes:
16 // - github.com/luci/gae/service/info
17 // - github.com/luci/gae/service/datastore
18 //
19 // This is built around the ability to use cloud datastore.
20 func Use(c context.Context, client *datastore.Client) context.Context {
21 cds := cloudDatastore{
22 client: client,
23 }
24
25 return cds.use(useInfo(c))
26 }
OLDNEW
« no previous file with comments | « no previous file | impl/cloud/datastore.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698