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

Unified Diff: filter/count/gi.go

Issue 1253263002: Make rawdatastore API safer for writing filters. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: fix comments 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
« no previous file with comments | « filter/count/count_test.go ('k') | filter/count/rds.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/gi.go
diff --git a/filter/count/gi.go b/filter/count/gi.go
index da651eeb145f1a5a768de7073e221c6d4669f9e5..548692b0e09c29c082e6feeff36b54b75f4722c2 100644
--- a/filter/count/gi.go
+++ b/filter/count/gi.go
@@ -15,6 +15,7 @@ import (
// InfoCounter is the counter object for the GlobalInfo service.
type InfoCounter struct {
AppID Entry
+ GetNamespace Entry
Datacenter Entry
DefaultVersionHostname Entry
InstanceID Entry
@@ -46,6 +47,11 @@ func (g *infoCounter) AppID() string {
return g.gi.AppID()
}
+func (g *infoCounter) GetNamespace() string {
+ g.c.GetNamespace.up()
+ return g.gi.GetNamespace()
+}
+
func (g *infoCounter) Datacenter() string {
g.c.Datacenter.up()
return g.gi.Datacenter()
« no previous file with comments | « filter/count/count_test.go ('k') | filter/count/rds.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698