client: s/newHTTPClusterClient/NewHTTPClient/

This commit is contained in:
Brian Waldon 2014-10-31 10:48:36 -07:00
parent 3eb126af4d
commit 1130273178
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ import (
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
)
func newHTTPClusterClient(tr *http.Transport, eps []string) (*httpClusterClient, error) {
func NewHTTPClient(tr *http.Transport, eps []string) (*httpClusterClient, error) {
c := httpClusterClient{
endpoints: make([]httpActionDo, len(eps)),
}

View File

@ -50,7 +50,7 @@ func NewDiscoveryKeysAPI(tr *http.Transport, eps []string, to time.Duration) (Ke
}
func newHTTPKeysAPIWithPrefix(tr *http.Transport, eps []string, to time.Duration, prefix string) (*httpKeysAPI, error) {
c, err := newHTTPClusterClient(tr, eps)
c, err := NewHTTPClient(tr, eps)
if err != nil {
return nil, err
}

View File

@ -35,7 +35,7 @@ var (
)
func NewMembersAPI(tr *http.Transport, eps []string, to time.Duration) (MembersAPI, error) {
c, err := newHTTPClusterClient(tr, eps)
c, err := NewHTTPClient(tr, eps)
if err != nil {
return nil, err
}