func NewClient(key string) *Client { etcd := etcd.NewClient([]string{etcdMachine}) etcd.SyncCluster() return &Client{Key: key, etcd: etcd} }
func NewRegistry(config Config, hosts []string) *Registry { return &Registry{ etcdClient: etcd.NewClient(hosts), config: config, } }
func (s *ClientSuite) SetUpSuite(c *C) { machines := []string{"http://127.0.0.1:4001"} s.etcd = etcd.NewClient(machines) s.client = NewClient("clienttest") }
func NewRegistry(config Config) *Registry { return &Registry{ etcdClient: etcd.NewClient([]string{"http://127.0.0.1:4001"}), config: config, } }