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

Unified Diff: impl/memory/info.go

Issue 2062613002: Add TrimmedAppID to info service. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Created 4 years, 6 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: impl/memory/info.go
diff --git a/impl/memory/info.go b/impl/memory/info.go
index fc1b2bf055cd2fa990e5720f6d84324dff831bcf..f793e72d6d5c497c31a4b7b2839075ea2500f8be 100644
--- a/impl/memory/info.go
+++ b/impl/memory/info.go
@@ -63,18 +63,18 @@ func useGID(c context.Context, f func(mod *globalInfoData)) context.Context {
// useGI adds a gae.GlobalInfo context, accessible
// by gae.GetGI(c)
func useGI(c context.Context) context.Context {
- return info.SetFactory(c, func(ic context.Context) info.Interface {
+ return info.SetFactory(c, func(ic context.Context) info.RawInterface {
return &giImpl{dummy.Info(), curGID(ic), ic}
})
}
type giImpl struct {
- info.Interface
+ info.RawInterface
*globalInfoData
c context.Context
}
-var _ = info.Interface((*giImpl)(nil))
+var _ = info.RawInterface((*giImpl)(nil))
func (gi *giImpl) GetNamespace() (string, bool) {
return gi.getNamespace()
@@ -90,14 +90,6 @@ func (gi *giImpl) Namespace(ns string) (ret context.Context, err error) {
}), nil
}
-func (gi *giImpl) MustNamespace(ns string) context.Context {
- ret, err := gi.Namespace(ns)
- if err != nil {
- panic(err)
- }
- return ret
-}
-
func (gi *giImpl) AppID() string {
return gi.appID
}
« no previous file with comments | « impl/dummy/dummy.go ('k') | impl/memory/info_test.go » ('j') | service/info/wrapper.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698