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

Unified Diff: filter/count/gi.go

Issue 1766593002: Add a MustNamespace that panics if the namespace wasn't valid (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Add MustNamespace to the interface Created 4 years, 9 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 | « no previous file | filter/featureBreaker/gi.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 e2fff3bc5e34a9602e4fc1c06232b6f8f9d39a1c..5524af003721ebe64f3bb40e3ce4a43bc8c67a5d 100644
--- a/filter/count/gi.go
+++ b/filter/count/gi.go
@@ -30,6 +30,7 @@ type InfoCounter struct {
ServiceAccount Entry
VersionID Entry
Namespace Entry
+ MustNamespace Entry
AccessToken Entry
PublicCertificates Entry
SignBytes Entry
@@ -123,6 +124,11 @@ func (g *infoCounter) Namespace(namespace string) (context.Context, error) {
return ret, g.c.Namespace.up(err)
}
+func (g *infoCounter) MustNamespace(namespace string) context.Context {
+ g.c.MustNamespace.up()
+ return g.gi.MustNamespace(namespace)
+}
+
func (g *infoCounter) AccessToken(scopes ...string) (string, time.Time, error) {
token, expiry, err := g.gi.AccessToken(scopes...)
return token, expiry, g.c.AccessToken.up(err)
« no previous file with comments | « no previous file | filter/featureBreaker/gi.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698