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

Unified Diff: state/api/client.go

Issue 7499043: state/apiserver: new package
Patch Set: state/apiserver: new package Created 11 years 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
« no previous file with comments | « state/api/apiserver.go ('k') | state/api/error.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/api/client.go
=== modified file 'state/api/client.go'
--- state/api/client.go 2013-02-25 17:48:15 +0000
+++ state/api/client.go 2013-03-05 22:43:34 +0000
@@ -97,6 +97,13 @@
return s.client.Close()
}
+// RPCClient returns the RPC client for the state, so that testing
+// functions can tickle parts of the API that the conventional entry
+// points don't reach. This is exported for testing purposes only.
+func (s *State) RPCClient() *rpc.Client {
+ return s.client
+}
+
type clientReq struct {
RequestId uint64
Type string
« no previous file with comments | « state/api/apiserver.go ('k') | state/api/error.go » ('j') | no next file with comments »

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