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

Side by Side Diff: state/api/apiclient.go

Issue 9746043: state/api: Split to multiple files (Closed)
Patch Set: Created 11 years, 10 months ago
Left:
Right:
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 unified diff | Download patch
« no previous file with comments | « [revision details] ('k') | state/api/apierror.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012, 2013 Canonical Ltd. 1 // Copyright 2012, 2013 Canonical Ltd.
2 // Licensed under the AGPLv3, see LICENCE file for details. 2 // Licensed under the AGPLv3, see LICENCE file for details.
3 3
4 package api 4 package api
5 5
6 import ( 6 import (
7 "code.google.com/p/go.net/websocket" 7 "code.google.com/p/go.net/websocket"
8 "crypto/tls" 8 "crypto/tls"
9 "crypto/x509" 9 "crypto/x509"
10 "launchpad.net/juju-core/cert" 10 "launchpad.net/juju-core/cert"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 func (s *State) Close() error { 100 func (s *State) Close() error {
101 return s.client.Close() 101 return s.client.Close()
102 } 102 }
103 103
104 // RPCClient returns the RPC client for the state, so that testing 104 // RPCClient returns the RPC client for the state, so that testing
105 // functions can tickle parts of the API that the conventional entry 105 // functions can tickle parts of the API that the conventional entry
106 // points don't reach. This is exported for testing purposes only. 106 // points don't reach. This is exported for testing purposes only.
107 func (s *State) RPCClient() *rpc.Conn { 107 func (s *State) RPCClient() *rpc.Conn {
108 return s.client 108 return s.client
109 } 109 }
OLDNEW
« no previous file with comments | « [revision details] ('k') | state/api/apierror.go » ('j') | no next file with comments »

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