OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // 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 } |
OLD | NEW |