LEFT | RIGHT |
1 // launchpad.net/juju/state | 1 // launchpad.net/juju/state |
2 // | 2 // |
3 // Copyright (c) 2011-2012 Canonical Ltd. | 3 // Copyright (c) 2011-2012 Canonical Ltd. |
4 package state | 4 package state |
5 | 5 |
6 import ( | 6 import ( |
7 "launchpad.net/gozk/zookeeper" | 7 "launchpad.net/gozk/zookeeper" |
8 ) | 8 ) |
9 | 9 |
10 // ZkConn returns the ZooKeeper connection used by a state. | 10 // ZkConn returns the ZooKeeper connection used by a state. |
11 // It is defined in export_test.go so that tests can have access | 11 // It is defined in export_test.go so that tests can have access |
12 // to this connection. | 12 // to this connection. |
13 func ZkConn(st *State) *zookeeper.Conn { | 13 func ZkConn(st *State) *zookeeper.Conn { |
14 return st.zk | 14 return st.zk |
15 } | 15 } |
LEFT | RIGHT |