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

Unified Diff: go/src/infra/gae/epservice/example/service_list.go

Issue 1240573002: Reland: Refactor current GAE abstraction library to be free of the SDK* (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: expand coverage range to fit 32bit test expectations 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 side-by-side diff with in-line comments
Download patch
Index: go/src/infra/gae/epservice/example/service_list.go
diff --git a/go/src/infra/gae/epservice/example/service_list.go b/go/src/infra/gae/epservice/example/service_list.go
index 9e8df9c3ed819e31997f8647a756571d68381940..23c41195f450c4125c1e66eb35d15b7a26b0cc58 100644
--- a/go/src/infra/gae/epservice/example/service_list.go
+++ b/go/src/infra/gae/epservice/example/service_list.go
@@ -6,8 +6,8 @@ package example
import (
"golang.org/x/net/context"
- "infra/gae/libs/wrapper"
- "infra/gae/libs/wrapper/gae"
+ "infra/gae/libs/gae"
+ "infra/gae/libs/gae/prod"
"github.com/GoogleCloudPlatform/go-endpoints/endpoints"
)
@@ -20,10 +20,10 @@ type ListRsp struct {
// List returns a list of all the counters. Note that it's very poorly
// implemented! It's completely unpaged. I don't care :).
-func (Example) List(c endpoints.Context) (rsp *ListRsp, err error) {
- ds := wrapper.GetDS(gae.Use(context.Background(), c))
+func (Example) List(c context.Context) (rsp *ListRsp, err error) {
+ rds := gae.GetRDS(prod.Use(c))
rsp = &ListRsp{}
- _, err = ds.GetAll(ds.NewQuery("Counter"), &rsp.Counters)
+ _, err = rds.GetAll(rds.NewQuery("Counter"), &rsp.Counters)
if err != nil {
return
}
« no previous file with comments | « go/src/infra/gae/epservice/example/service_currentvalue.go ('k') | go/src/infra/gae/libs/gae/brokenfeatures.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698