client: ClientConfig -> Config

This commit is contained in:
Brian Waldon
2015-01-26 17:26:15 -08:00
committed by Yicheng Qin
parent 2aecbaf165
commit 3b41b77cd7
4 changed files with 6 additions and 6 deletions

View File

@@ -46,12 +46,12 @@ func defaultHTTPClientFactory(tr CancelableTransport, ep url.URL) HTTPClient {
}
}
type ClientConfig struct {
type Config struct {
Endpoints []string
Transport CancelableTransport
}
func New(cfg ClientConfig) (SyncableHTTPClient, error) {
func New(cfg Config) (SyncableHTTPClient, error) {
c := &httpClusterClient{clientFactory: defaultHTTPClientFactory}
if err := c.reset(cfg.Transport, cfg.Endpoints); err != nil {
return nil, err