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

Unified Diff: service/user/user.go

Issue 1500433002: Add User service. (Closed) Base URL: https://github.com/luci/gae.git@inner_ctx
Patch Set: Created 5 years 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
« impl/dummy/dummy.go ('K') | « service/user/interface.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/user/user.go
diff --git a/service/user/user.go b/service/user/user.go
new file mode 100644
index 0000000000000000000000000000000000000000..f8e1c55633b52cae7e62224b667db7b9eb3829ee
--- /dev/null
+++ b/service/user/user.go
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package user
+
+import "google.golang.org/appengine/user"
+
+// User is a mimic of https://godoc.org/google.golang.org/appengine/user#User
+//
+// It's provided here for convenience, and is compile-time checked to be
+// identical.
+type User struct {
+ Email string
+ AuthDomain string
+ Admin bool
+ ID string
+ ClientID string
+ FederatedIdentity string
+ FederatedProvider string
+}
+
+var _ User = (User)(user.User{})
Vadim Sh. 2015/12/03 00:55:56 o_O didn't know it works that way
iannucci 2015/12/03 01:00:24 All public fields with matching names and types ==
« impl/dummy/dummy.go ('K') | « service/user/interface.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698