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

Unified Diff: service/info/interface.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 | « impl/prod/info.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/info/interface.go
diff --git a/service/info/interface.go b/service/info/interface.go
index b6f58cae61297c0c2c65596cd768b01fe02b3c3f..a4541482fdebba59354e0b85681980dd715e259c 100644
--- a/service/info/interface.go
+++ b/service/info/interface.go
@@ -31,6 +31,7 @@ type Interface interface {
VersionID() string
Namespace(namespace string) (context.Context, error)
+ MustNamespace(namespace string) context.Context
AccessToken(scopes ...string) (token string, expiry time.Time, err error)
PublicCertificates() ([]Certificate, error)
« no previous file with comments | « impl/prod/info.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698