Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(350)

Unified Diff: state/apiserver/root.go

Issue 12551043: state: implement the single FindEntity method
Patch Set: state: implement the single FindEntity method Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: state/apiserver/root.go
=== modified file 'state/apiserver/root.go'
--- state/apiserver/root.go 2013-07-31 16:44:36 +0000
+++ state/apiserver/root.go 2013-08-06 17:48:03 +0000
@@ -16,6 +16,11 @@
type clientAPI struct{ *client.API }
+type taggedAuthenticator interface {
+ state.Entity
+ state.Authenticator
+}
+
// srvRoot represents a single client's connection to the state
// after it has logged in.
type srvRoot struct {
@@ -23,10 +28,10 @@
srv *Server
resources *common.Resources
- entity state.TaggedAuthenticator
+ entity taggedAuthenticator
}
-func newSrvRoot(srv *Server, entity state.TaggedAuthenticator) *srvRoot {
+func newSrvRoot(srv *Server, entity taggedAuthenticator) *srvRoot {
r := &srvRoot{
srv: srv,
resources: common.NewResources(),

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b